Class: Sketchup::CRSMapUnit
| Relationships | |
| Inherits: | Object |
Overview
The CRSMapUnit class represents a length unit and the conversion factor from that unit to meters.
Constant Summary
-
FEET =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/CRSMapUnit.rb', line 11
Constants
nil -
METERS =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/CRSMapUnit.rb', line 13
Stub value.
nil -
US_SURVEY_FEET =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/CRSMapUnit.rb', line 15
Stub value.
nil
Class Method Summary
-
.new(name, conversion) ⇒ Sketchup::CRSMapUnit
constructor
Creates a
CRSMapUnitobject.
Instance Method Summary
-
#==(other) ⇒ Boolean
The #== method returns whether two
CRSMapUnitare equal within tolerance. -
#conversion ⇒ Float
The #conversion method is used to retrieve the conversion factor between this map unit and meters.
-
#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
.new(name, conversion) ⇒ CRSMapUnit
Creates a CRSMapUnit object.
Instance Method Details
#==(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.
#inspect ⇒ String
The #inspect method returns a string representation of the CRSMapUnit.
#name ⇒ String
For best interoperability with other BIM and GIS software this should follow the IFC
The #name method is used to retrieve the name of the CRSMapUnit.
standard.
#to_s ⇒ String
The #to_s method returns a string containing a human-readable representation of the CRSMapUnit.