static class Units
A collection of unit conversion constants! Multiply things by these to convert them into different units.
Static Fields and Properties
|float cm2m||Converts centimeters to meters. There are 100cm in 1m. In StereoKit 1 unit is also 1 meter, so
|float deg2rad||Degrees to radians, multiply degree values by this, and you get radians! Like so:
|float m2cm||Converts meters to centimeters. There are 100cm in 1m, so this just multiplies by 100.|
|float m2mm||Converts meters to millimeters. There are 1000mm in 1m, so this just multiplies by 1000.|
|float mm2m||Converts millimeters to meters. There are 1000mm in 1m. In StereoKit 1 unit is 1 meter, so
|float rad2deg||Radians to degrees, multiply radian values by this, and you get degrees! Like so:
Found an issue with these docs, or have some additional questions? Create an Issue on Github!