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
Left | Operator | Right | = | Comments |
---|---|---|---|---|
Area | + or - | Area | Area | |
Area | * or / | Double | Area | |
Area | / | Dimension | Dimension |
Fields
Name | Type | Comments |
---|---|---|
mm | Double | The number of square millimeters |
cm | Double | The number of square centimeters |
m | Double | The number of square meters |
km | Double | The number of square kilometers |
Methods
Name | Parameters | Return Type | Comments |
---|---|---|---|
toString | none | String | Converts to a string, but may be ugly for non integer values. |
format | String | String | Uses Java's DecimalFormat |
units | none | Units | |
toUnits | Units | Dimension | Converts to different units, keeping the same area. |