Matrix4x3.lookAtRH()
Build a right-handed look-at matrix with the cameraPosition, cameraTarget and the cameraUp vectors given as parameter
Parameters
Name | Type | Description | |
---|---|---|---|
1 | eye | Vector3 | |
2 | target | Vector3 | |
3 | up | Vector3 |
Return value
Matrix4x3
the Matrix4x3 with its new values
Usage
import {Matrix4x4, Vector3} from '@lcluber/type6js';
let eye = new Vector3(0, 10, 10);
let target = new Vector3(10, 0, 0);
let up = new Vector3(0, 1, 0);
let lookAt = Matrix4x4.lookAtRH(eye, target, up);