Matrix4x3d.billboardSpherical

Set this matrix to a spherical billboard transformation that rotates the local +Z axis of a given object with position <code>objPos</code> towards a target position at <code>targetPos</code> using a shortest arc rotation by not preserving any <i>up</i> vector of the object. <p> This method can be used to create the complete model transformation for a given object, including the translation of the object to its position <code>objPos</code>. <p> In order to specify an <i>up</i> vector which needs to be maintained when rotating the +Z axis of the object, use {@link #billboardSpherical(Vector3d, Vector3d, Vector3d)}.

@see #billboardSpherical(Vector3d, Vector3d, Vector3d)

@param objPos the position of the object to rotate towards <code>targetPos</code> @param targetPos the position of the target (for example the camera) towards which to rotate the object @return this

  1. Matrix4x3d billboardSpherical(Vector3d objPos, Vector3d targetPos, Vector3d up)
  2. Matrix4x3d billboardSpherical(Vector3d objPos, Vector3d targetPos)
    struct Matrix4x3d
    ref public return
    billboardSpherical

Meta