Spherical.R3.Vector
Represents a point in ℝ³.
Summary
| abs(vector) | Returns the |
| add(first, second) | Returns the standard vector sum of |
| angle(first, second) | Returns the angle between |
| approx_equal(first, second) | Checks whether |
| cross(first, second) | Returns the standard cross product of |
| distance(first, second) | Returns the Euclidean distance between |
| dot(first, second) | Returns the standard dot product of |
| is_unit?(vector) | Checks whether |
| mul(vector, m) | Returns the standard scalar product of |
| new() | Returns an empty vector |
| new(x, y, z) | Returns a vector with the given coordinates |
| norm(vector) | Returns the vector’s norm |
| normalize(vector) | Returns a unit vector in the same direction as |
| orthogonal(vector) | Returns a unit vector that is orthogonal to |
| square_norm(vector) | Returns the square of the vector’s norm |
| sub(first, second) | Returns the standard vector difference of |
Types
t :: %Spherical.R3.Vector{x: number, y: number, z: number}
Functions
Returns the vector with non-negative components.
Returns the standard vector sum of first and second.
Returns the angle between first and second.
Checks whether first and second are equal within a small
epsilon.
Returns the standard cross product of first and second.
Returns the Euclidean distance between first and second.
Returns the standard dot product of first and second.
Checks whether vector is of approximately unit length.
Returns the standard scalar product of vector and m.
Returns an empty vector.
Returns a vector with the given coordinates.
Returns the vector’s norm.
Returns a unit vector in the same direction as vector.
Returns a unit vector that is orthogonal to vector.
Ortho(-vector) = -Ortho(vector) for all vector.
Returns the square of the vector’s norm.
Returns the standard vector difference of first and second.