math docs
    Preparing search index...

    Function targetTo

    • Sets a quaternion to the rotation that makes something at eye look at target. Its -Z axis faces target and its +Y axis leans toward up.

      Parameters

      • out: quat.Quat

        the receiving quaternion

      • eye: readonly [number, number, number]

        position of the viewer

      • target: readonly [number, number, number]

        point to look at

      • up: readonly [number, number, number]

        vec3 pointing up

      Returns quat.Quat

      out