Robotics::SpatialReasoning::Position
Inherits Struct < Value < Object
3D position in space
Constructors
new(x : Float64, y : Float64, z : Float64 = 0.0)
Instance methods
*(scalar : Float64) : Position
+(other : Position) : Position
-(other : Position) : Position
distance_to(other : Position) : Float64
magnitude
normalize
to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
x
y
z