Function lookAt

  • Computes a 4-by-4 view transformation.

    This is a view matrix which transforms all other objects to be in the space of the view defined by the parameters.

    Type Parameters


    • eye: BaseArgType

      The position of the object.

    • target: BaseArgType

      The position meant to be aimed at.

    • up: BaseArgType

      A vector pointing up.

    • Optional dst: T

      matrix to hold result. If not passed a new one is created.

    Returns T

    The look-at matrix.