1.2.6. Unit Conversions

raysect.core.math.units.cm()

Converts centimeters to meters.

Parameters

v (float) – Length in centimeters.

Returns

Length in meters.

raysect.core.math.units.foot()

Converts feet to meters.

Parameters

v (float) – Length in feet.

Returns

Length in meters.

raysect.core.math.units.inch()

Converts inches to meters.

Parameters

v (float) – Length in inches.

Returns

Length in meters.

raysect.core.math.units.km()

Converts kilometers to meters.

Parameters

v (float) – Length in kilometers.

Returns

Length in meters.

raysect.core.math.units.mil()

Converts mils (thousandths of an inch) to meters.

Parameters

v (float) – Length in mils.

Returns

Length in meters.

raysect.core.math.units.mile()

Converts miles to meters.

Parameters

v (float) – Length in miles.

Returns

Length in meters.

raysect.core.math.units.mm()

Converts millimeters to meters.

Parameters

v (float) – Length in millimeters.

Returns

Length in meters.

raysect.core.math.units.nm()

Converts nanometers to meters.

Parameters

v (float) – Length in nanometers.

Returns

Length in meters.

raysect.core.math.units.radian()

Converts radians to degrees.

Parameters

v (float) – Angle in radians.

Returns

Angle in degrees.

raysect.core.math.units.um()

Converts micrometers to meters.

Parameters

v (float) – Length in micrometers.

Returns

Length in meters.

raysect.core.math.units.yard()

Converts yards to meters.

Parameters

v (float) – Length in yards.

Returns

Length in meters.