Matrix4x3.lookAtRH()

Build a right-handed look-at matrix with the cameraPosition, cameraTarget and the cameraUp vectors given as parameter

Parameters

NameTypeDescription
1eyeVector3
2targetVector3
3upVector3

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);