Method LookAtMatrix
LookAtMatrix(Point3, Point3, Point3)
Create a matrix from a camera position, up and target
Declaration
public Matrix4 LookAtMatrix(Point3 position, Point3 up, Point3 target)
Parameters
Type | Name | Description |
---|---|---|
Point3 | position | The camera position |
Point3 | up | The up vector |
Point3 | target | The target position |
Returns
Type | Description |
---|---|
Matrix4 |