Class: Sketchup::CRSMapUnit
- Inherits:
-
Object
- Object
- Sketchup::CRSMapUnit
Overview
The CRSMapUnit class represents a length unit and the conversion factor from that unit to meters.
Constants for CRS MapUnits # collapse
- Sketchup::CRSMapUnit::METERS
- Sketchup::CRSMapUnit::FEET
- Sketchup::CRSMapUnit::US_SURVEY_FEET
Instance Method Summary # collapse
-
#==(other) ⇒ Boolean
The #== method returns whether two CRSMapUnit are equal within tolerance.
-
#conversion ⇒ Float
The #conversion method is used to retrieve the conversion factor between this map unit and meters.
-
#initialize(name, conversion) ⇒ Sketchup::CRSMapUnit
constructor
Creates a CRSMapUnit object.
-
#inspect ⇒ String
The #inspect method returns a string representation of the CRSMapUnit.
-
#name ⇒ String
The #name method is used to retrieve the name of the CRSMapUnit.
-
#to_s ⇒ String
The #to_s method returns a string containing a human-readable representation of the CRSMapUnit.
Constructor Details
↑ #initialize(name, conversion) ⇒ Sketchup::CRSMapUnit
Creates a CRSMapUnit object.
Instance Method Details
↑ #==(other) ⇒ Boolean
The #== method returns whether two Sketchup::CRSMapUnit are equal within tolerance.
↑ #conversion ⇒ Float
The #conversion method is used to retrieve the conversion factor between this map unit and meters.