class CSG::Vector2D
- CSG::Vector2D
- Reference
- Object
Overview
Represents a 2D vector.
Defined in:
primitives/vector2d.crConstructors
Instance Method Summary
- #!=(a : Vector) : Bool
- #==(a : Vector) : Bool
- #clone
- #cross(a : Vector)
- #div(a : Float64)
- #dot(a : Vector)
- #length
- #lerp(a : Vector, t : Float64)
- #minus(a : Vector)
- #negated
- #plus(a : Vector)
- #times(a : Float64)
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #unit
- #x : Float64
- #x=(x : Float64)
- #y : Float64
- #y=(y : Float64)
Constructor Detail
Instance Method Detail
def to_s : String
#
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
.