Method: Metro::Units::Point.at
- Defined in:
- lib/metro/units/point.rb
.at(x = 0.0, y = 0.0, z = 0.0) ⇒ Object
An alternate way of creating a point. Creation here converts all inputs to floating point and assumes that the z-value is zero (as this is a 2D universe).
22 23 24 |
# File 'lib/metro/units/point.rb', line 22 def self.at(x=0.0,y=0.0,z=0.0) new x.to_f, y.to_f, z.to_f end |