Home > decentraland-ecs > Vector3 > TransformCoordinatesToRef
Sets the given vector "result" coordinates with the result of the transformation by the given matrix of the given vector This method computes tranformed coordinates only, not transformed direction vectors (ie. it takes translation in account)
Signature:
static TransformCoordinatesToRef(vector: ReadOnlyVector3, transformation: Readonly<Matrix>, result: Vector3): void;
Returns: void
Parameter | Type | Description |
---|---|---|
vector |
ReadOnlyVector3 |
defines the Vector3 to transform |
transformation |
Readonly<Matrix> |
defines the transformation matrix |
result |
Vector3 |
defines the Vector3 where to store the result |