A unit of measure for area.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Foundation
Declaration
class UnitArea : Dimension
Overview
You typically use instances of NSUnit
to represent specific quantities of area using the NSMeasurement
class.
Area
Area is a quantity of extent in two dimensions. Area can be expressed by SI derived units in terms of square meters (m2). Area is also commonly measured in square feet (ft2) and acres (ac).
The NSUnit
class defines its base unit as square
, and provides the following units, which are initialized using Unit
converters with the specified coefficients:
Name | Method | Symbol | Coefficient |
---|---|---|---|
Square Megameters | Mm² |
| |
Square Kilometers | km² |
| |
Square Meters | m² |
| |
Square Centimeter | cm² |
| |
Square Millimeters | mm² |
| |
Square Micrometers | µm² |
| |
Square Nanometers | nm² |
| |
Square Inches | in² |
| |
Square Feet | ft² |
| |
Square Yards | yd² |
| |
Square Miles | mi² |
| |
Acres | ac |
| |
Ares | a |
| |
Hectares | ha |
|