![]() |
Unity SDK Docs 1.5.0.beta.7
|
Public Member Functions | |
| Length (float value, LengthUnit unit) | |
| float | ConvertTo (LengthUnit unit) |
| Converts the length to a value in the provided units. | |
| double | PreciselyConvertTo (LengthUnit unit) |
| Converts the length to a double value in the provided units. | |
Static Public Member Functions | |
| static float | ConvertToMeters (float length, LengthUnit unit) |
| Converts the provided length value to a value in meters. | |
| static float | ConvertMetersTo (float meters, LengthUnit unit) |
| Converts the provided meter value to a value in the provided units. | |
| static double | PreciselyConvertMetersTo (double meters, LengthUnit unit) |
| Converts the provided meter value to a double value in the provided units. | |
| static Length | operator* (Length a, float scalar) |
| Multiplies a Length by some scalar value. | |
| static Length | operator+ (Length a, Length b) |
| Adds two Length values together. | |
| static Length | operator- (Length a, Length b) |
| Subtracts one Length value from another Length value. | |
Properties | |
| float | ToInches [get] |
| The Length, converted to inches. | |
| float | ToFeet [get] |
| The Length, converted to feet. | |
| float | ToYards [get] |
| The Length, converted to yards. | |
| float | ToFurlongs [get] |
| The Length, converted to furlongs. | |
| float | ToMiles [get] |
| The Length, converted to miles. | |
| float | ToMillimeters [get] |
| The Length, converted to millimeters. | |
| float | ToMegaBeardSeconds [get] |
| The Length, converted to mega-beard-seconds. | |
| float | ToCentimeters [get] |
| The Length, converted to centimeters. | |
| float | ToAttoparsecs [get] |
| The Length, converted to attoparsecs. | |
| float | ToMeters [get] |
| The Length, converted to meters. | |
| float | ToSmoots [get] |
| The Length, converted to smoots. | |
| float | ToKilometers [get] |
| The Length, converted to kilometers. | |
| TiltFive.Length.Length | ( | float | value, |
| LengthUnit | unit ) |
|
static |
Converts the provided meter value to a value in the provided units.
| meters | The provided length in meters. |
| unit | The provided length units. |
| float TiltFive.Length.ConvertTo | ( | LengthUnit | unit | ) |
Converts the length to a value in the provided units.
| unit | The provided length units. |
|
static |
Converts the provided length value to a value in meters.
| length | The provided length. |
| unit | The provided length units. |
|
static |
Converts the provided meter value to a double value in the provided units.
| meters | The provided length in meters. |
| unit | The provided length units. |
Performs the conversion calculation using double arithmetic to reduce floating-point rounding errors. This may be less performant, so Drink Responsibly™. /remarks>
| double TiltFive.Length.PreciselyConvertTo | ( | LengthUnit | unit | ) |
Converts the length to a double value in the provided units.
| unit | The provided length units. |
Performs the conversion calculation using double arithmetic to reduce floating-point rounding errors. This may be less performant, so Drink Responsibly™. /remarks>
|
get |
The Length, converted to attoparsecs.
|
get |
The Length, converted to centimeters.
|
get |
The Length, converted to feet.
|
get |
The Length, converted to furlongs.
|
get |
The Length, converted to inches.
|
get |
The Length, converted to kilometers.
|
get |
The Length, converted to mega-beard-seconds.
|
get |
The Length, converted to meters.
|
get |
The Length, converted to miles.
|
get |
The Length, converted to millimeters.
|
get |
The Length, converted to smoots.
|
get |
The Length, converted to yards.