Class

NSUnitAngle

A unit of measure for rotation.

Declaration

@interface NSUnitAngle : NSDimension

Overview

You typically use instances of NSUnitAngle to represent specific quantities of planar angle using the NSMeasurement class.

Angle

Angle is a quantity of rotation. The SI unit for angle is the radian (rad), which is dimensionless and defined to be the the angle subtended by an arc that is equal in length to the radius of a circle. Angle is also commonly expressed in terms of degrees (°) and revolutions (rev).

The NSUnitAngle class defines its base unit as degrees, and provides the following units, which are initialized using NSUnitConverterLinear converters with the specified coefficients:

Name

Method

Symbol

Definition

Degrees

degrees

°

1.0

Arc Minutes

arcMinutes

ʹ

0.016667

Arc Seconds

arcSeconds

ʺ

0.00027778

Radians

radians

rad

57.2958

Gradians

gradians

grad

0.9

Revolutions

revolutions

rev

360

Topics

Accessing the Base Unit

+ baseUnit

Returns the base unit of angle. Equal to degrees.

Accessing Predefined Units

degrees

Returns the degrees unit of angle.

arcMinutes

Returns the arc minutes unit of angle.

arcSeconds

Returns the arc seconds unit of angle.

radians

Returns the radians unit of angle.

gradians

Returns the gradians unit of angle.

revolutions

Returns the revolutions unit of angle.

Relationships

Inherits From

Conforms To

See Also

Physical Dimension

NSUnitArea

A unit of measure for area.

NSUnitLength

A unit of measure for length.

NSUnitVolume

A unit of measure for volume.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software