Home > decentraland-ecs > Matrix > TranslationToRef
Creates a translation matrix and stores it in a given matrix
Signature:
static TranslationToRef(x: number, y: number, z: number, result: Matrix): void;
Returns: void
Parameter | Type | Description |
---|---|---|
x |
number |
defines the translation on X axis |
y |
number |
defines the translation on Y axis |
z |
number |
defines the translationon Z axis |
result |
Matrix |
defines the target matrix |