Class

UnitArea

A unit of measure for area.

Declaration

class UnitArea : Dimension

Overview

You typically use instances of NSUnitArea 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 NSUnitArea class defines its base unit as squareMeters, and provides the following units, which are initialized using UnitConverterLinear converters with the specified coefficients:

Name

Method

Symbol

Coefficient

Square Megameters

squareMegameters

Mm²

1e12

Square Kilometers

squareKilometers

km²

1000000.0

Square Meters

squareMeters

1.0

Square Centimeter

squareCentimeters

cm²

0.0001

Square Millimeters

squareMillimeters

mm²

0.000001

Square Micrometers

squareMicrometers

µm²

1e-12

Square Nanometers

squareNanometers

nm²

1e-18

Square Inches

squareInches

in²

0.00064516

Square Feet

squareFeet

ft²

0.092903

Square Yards

squareYards

yd²

0.836127

Square Miles

squareMiles

mi²

2.59e+6

Acres

acres

ac

4046.86

Ares

ares

a

100

Hectares

hectares

ha

10000

Topics

Accessing Predefined Units

class var squareMegameters: UnitArea

Returns the square megameters unit of area.

class var squareKilometers: UnitArea

Returns the square kilometers unit of area.

class var squareMeters: UnitArea

Returns the square meters unit of area.

class var squareCentimeters: UnitArea

Returns the square centimeters unit of area.

class var squareMillimeters: UnitArea

Returns the square millimeters unit of area.

class var squareMicrometers: UnitArea

Returns the square micrometers unit of area.

class var squareNanometers: UnitArea

Returns the square nanometers unit of area.

class var squareInches: UnitArea

Returns the square inches unit of area.

class var squareFeet: UnitArea

Returns the square feet unit of area.

class var squareYards: UnitArea

Returns the square yards unit of area.

class var squareMiles: UnitArea

Returns the square miles unit of area.

class var acres: UnitArea

Returns the acres unit of area.

class var ares: UnitArea

Returns the ares unit of area.

class var hectares: UnitArea

Returns the hectar unit of area.

Relationships

Inherits From

See Also

Physical Dimension

class UnitLength

A unit of measure for length.

class UnitVolume

A unit of measure for volume.

class UnitAngle

A unit of measure for rotation.

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