Exit Full View

Fizzy / docs / ref / Area.md

Area

Rarely used, but if you multiply a Dimension by a Dimension, you get an Area.

Creation

You cannot create them directly, only via multiplication of Dimensions.

Operators

LeftOperatorRight=Comments
Area+ or -AreaArea
Area* or /DoubleArea
Area/DimensionDimension

Fields

NameTypeComments
mmDoubleThe number of square millimeters
cmDoubleThe number of square centimeters
mDoubleThe number of square meters
kmDoubleThe number of square kilometers

Methods

NameParametersReturn TypeComments
toStringnoneStringConverts to a string, but may be ugly for non integer values.
formatStringStringUses Java's DecimalFormat
unitsnoneUnits
toUnitsUnitsDimensionConverts to different units, keeping the same area.