Function
GSNormalizeAngleDirection(_:_:) GSNormalizeAngleDirection GSNormalizeAngleDirection
Returns a version of the angle that matches the given direction.
Declaration
func GSNormalizeAngleDirection(
_ angle: CGFloat,
_ direction: GSRotationDirection
) -> CGFloatDeclaration
CGFloat GSNormalizeAngleDirection(
CGFloat angle,
GSRotationDirection direction
);Declaration
GSNormalizeAngleDirection(
angle: float,
direction: GSRotationDirection
) -> floatParameters
angleAn angle in arc degree.
directionThe direction in which to normalize the angle. If
GSRotationDirectionSmallestAngle, the return value is in the interval (-180, 180]. IfGSRotationDirectionClockwise, the return value is in the interval (-360, 0]. IfGSRotationDirectionCounterclockwise, the return value is in the interval [0, 360).
See Also
Angles and Slopes
See Also
Angles and Slopes
Returns a value in the interval [0, 2π).
Returns a value in the interval [0, 360).