Midnight Blue Game and Engine
Public Member Functions | Public Attributes | Properties | List of all members
MidnightBlue.Length Class Reference

Defines a measurement of length in meters able to be converted to other measurements. More...

Collaboration diagram for MidnightBlue.Length:
Collaboration graph

Public Member Functions

 Length (ulong meters)
 Initializes a new instance of the T:MidnightBlue.Length class. More...
 

Public Attributes

const float AstronomicalUnit = 149597870.7f
 A single Astronomical Unit in kilometers More...
 

Properties

ulong Meters [get]
 Gets the length in meters More...
 
ulong Centimeters [get]
 Gets the length in centimeters More...
 
ulong Kilometers [get]
 Gets the length in kilometers More...
 
int RelativeKilometers [get]
 Gets the length in kilometers represented as a smaller value used for calculations. More...
 
float AU [get]
 Gets the length in Astronomical Unites More...
 

Detailed Description

Defines a measurement of length in meters able to be converted to other measurements.

Constructor & Destructor Documentation

§ Length()

MidnightBlue.Length.Length ( ulong  meters)
inline

Initializes a new instance of the T:MidnightBlue.Length class.

Parameters
metersInitial length to set in meters.

Member Data Documentation

§ AstronomicalUnit

const float MidnightBlue.Length.AstronomicalUnit = 149597870.7f

A single Astronomical Unit in kilometers

Property Documentation

§ AU

float MidnightBlue.Length.AU
get

Gets the length in Astronomical Unites

The length in astronomical units.

§ Centimeters

ulong MidnightBlue.Length.Centimeters
get

Gets the length in centimeters

The length in centimeters.

§ Kilometers

ulong MidnightBlue.Length.Kilometers
get

Gets the length in kilometers

The length in kilometers.

§ Meters

ulong MidnightBlue.Length.Meters
get

Gets the length in meters

The length in meters.

§ RelativeKilometers

int MidnightBlue.Length.RelativeKilometers
get

Gets the length in kilometers represented as a smaller value used for calculations.

The length in relative kilometers.


The documentation for this class was generated from the following file: