Matrix4d.billboardCylindrical

Set this matrix to a cylindrical 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> while constraining a cylindrical rotation around the given <code>up</code> vector. <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>.

@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 @param up the rotation axis (must be {@link Vector3d#normalize() normalized}) @return this

struct Matrix4d
ref public return
billboardCylindrical

Meta