struct VectorMath::Vec3
- VectorMath::Vec3
- Struct
- Value
- Object
Overview
An immutable set of x/y/z coordinates
Defined in:
vector_math/vectors.crConstructors
Class Method Summary
Instance Method Summary
- #*(scalar)
- #+(other)
- #-(other)
- #/(scalar)
- #mag
- #normalize
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
-
#to_vec2
throw away the z component
-
#to_vec4
add w=1.0
- #x : Float64
- #y : Float64
- #z : 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
.