signedAngleTo Method

Return the (strongly-typed) angle from this vector to vectorB, measured in their containing plane whose normal lies in the same half-space as vectorW.

  • The returned angle is between -180 and 180 degrees.
  • If the cross product of this vector and vectorB lies on the same side of the plane as vectorW, this function returns angleTo(vectorB); otherwise, it returns -angleTo(vectorB).
  • vectorW does not have to be perpendicular to the plane.
  • Use planarAngleTo to measure the angle between vectors that are projected to another plane.

signedAngleTo(vectorB: Vector3d, vectorW: Vector3d): Angle

Parameter Type Description
vectorB Vector3d target vector.
vectorW Vector3d determines the side of the plane in which the returned angle is measured

Returns - Angle

Defined in

Last Updated: 17 December, 2024