Matrix.lookAt

Returns view transform matrix.

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

Parameters

vec Vector!(T, 3)

backward vector

up Vector!(T, 3)

up vector

Return Value

Type: Matrix

view transformation matrix

Meta