Three-component vectors as {x, y, z} float tuples.
Cauldron3D.Vec.add({1.0, 0.0, 0.0}, {0.0, 2.0, 0.0})
#=> {1.0, 2.0, 0.0}
Summary
Functions
a + b.
The cross product.
The dot product.
The vector as floats.
The length.
The point t of the way from a to b.
a + b * s.
Each component the larger of the two.
Each component the smaller of the two.
The vector scaled to length one; the zero vector stays zero.
v * s.
a - b.
The zero vector.
Types
Functions
a + b.
The cross product.
The dot product.
The vector as floats.
The length.
The point t of the way from a to b.
a + b * s.
Each component the larger of the two.
Each component the smaller of the two.
The vector scaled to length one; the zero vector stays zero.
v * s.
a - b.
@spec zero() :: t()
The zero vector.