Matrix.lookAt

Returns view transform matrix.

  1. Matrix lookAt(Vector!(T, 3) vec, Vector!(T, 3) up)
  2. Matrix lookAt(Vector!(T, 3) eye, Vector!(T, 3) vec, Vector!(T, 3) up)
    struct Matrix(T, uint U, uint V)
    static
    static if(U == V)
    static if(!(U == 3))
    static if(U == 4)
    lookAt
    (
    const Vector!(T, 3) eye
    ,
    const Vector!(T, 3) vec
    ,
    const Vector!(T, 3) up
    )
    if (
    __traits(isArithmetic, T)
    )

Parameters

eye Vector!(T, 3)

point of view

vec Vector!(T, 3)

backward vector

up Vector!(T, 3)

up vector

Return Value

Type: Matrix

view transformation matrix

Meta