Home > decentraland-ecs > Vector4 > Distance
Returns the distance (float) between the vectors "value1" and "value2".
Signature:
static Distance(value1: ReadOnlyVector4, value2: ReadOnlyVector4): number;
Returns: number
the distance between the two vectors
Parameter | Type | Description |
---|---|---|
value1 |
ReadOnlyVector4 |
value to calulate the distance between |
value2 |
ReadOnlyVector4 |
value to calulate the distance between |