Declaration

func GSNormalizeAngleDirection(
    _ angle: CGFloat,
    _ direction: GSRotationDirection
) -> CGFloat

Declaration

CGFloat GSNormalizeAngleDirection(
    CGFloat angle,
    GSRotationDirection direction
);

Declaration

GSNormalizeAngleDirection(
    angle: float,
    direction: GSRotationDirection
) -> float

Parameters

angle

An angle in arc degree.

direction

The direction in which to normalize the angle. If GSRotationDirectionSmallestAngle, the return value is in the interval (-180, 180]. If GSRotationDirectionClockwise, the return value is in the interval (-360, 0]. If GSRotationDirectionCounterclockwise, the return value is in the interval [0, 360).

See Also

Angles and Slopes

See Also

Angles and Slopes