struct VectorMath::Vec2
- VectorMath::Vec2
- Struct
- Value
- Object
Overview
An immutable pair of x/y coordinates
Defined in:
vector_math/vectors.crConstructors
Class Method Summary
Instance Method Summary
- #*(scalar : Float64)
- #*(other : Vec2)
- #+(other : Vec2)
- #+(other : Float64)
- #-(other)
- #/(scalar)
- #mag
- #normalize
- #svg_pair
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #x : Float64
- #y : Float64
Constructor Detail
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
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
.