A 1x3 vector class.
More...
#include <Vector3.h>
|
|
using | Unique = std::unique_ptr<Vector3> |
| | Unique pointer.
|
| |
|
using | Shared = std::shared_ptr<Vector3> |
| | Shared pointer.
|
| |
|
using | Option = std::optional<Vector3> |
| | Optional.
|
| |
◆ Vector3() [1/5]
◆ Vector3() [2/5]
| Vector3::Vector3 |
( |
double | x, |
|
|
double | y, |
|
|
double | z = 0.0 ) |
Constructor
- Parameters
-
| x | X coefficient |
| y | Y coefficient |
| z | Z coefficient |
◆ Vector3() [3/5]
| Vector3::Vector3 |
( |
const Point & | source | ) |
|
Constructor
- Parameters
-
| source | A point to construct the vector from |
◆ Vector3() [4/5]
| Vector3::Vector3 |
( |
const Line & | source | ) |
|
Constructor
- Parameters
-
| source | A line to construct the vector from |
◆ Vector3() [5/5]
| Vector3::Vector3 |
( |
const Vector3 & | source | ) |
|
Copy constructor
- Parameters
-
◆ ~Vector3()
| virtual active::geometry::Vector3::~Vector3 |
( |
| ) |
|
|
virtualdefault |
◆ altitudeAngle()
| double Vector3::altitudeAngle |
( |
| ) |
const |
Get the altitude angle of the vector
- Returns
- The altitude angle
◆ angleTo()
| double Vector3::angleTo |
( |
const Vector3 & | ref | ) |
const |
Get the angle between a vector and this
- Parameters
-
- Returns
- The angle between the vector and this
◆ azimuthAngle()
| double Vector3::azimuthAngle |
( |
| ) |
const |
Get the azimuth angle of the vector
- Returns
- The azimuth angle
◆ dotProduct()
| double Vector3::dotProduct |
( |
const Vector3 & | ref | ) |
const |
Get the dot product of two vectors
- Parameters
-
- Returns
- The dot product
◆ isEmpty()
| bool Vector3::isEmpty |
( |
double | prec = math::eps | ) |
const |
Determine if the vector is empty (all null values)
- Parameters
-
| prec | The precision of the test |
- Returns
- True if the vector is empty
◆ isParallelTo()
| bool Vector3::isParallelTo |
( |
const Vector3 & | ref, |
|
|
double | prec = math::eps ) const |
Determine of a vector is parallel to this
- Parameters
-
| ref | A vector |
| prec | The precision of the test |
- Returns
- True if the vector is parallel to this
◆ isPerpendicularTo()
| bool Vector3::isPerpendicularTo |
( |
const Vector3 & | ref, |
|
|
double | prec = math::eps ) const |
Determine if a vector is perpendicular to this
- Parameters
-
| ref | A vector |
| prec | The precision of the test |
- Returns
- True if the vector is perpendicular to this
◆ isSameSense()
| bool Vector3::isSameSense |
( |
const Vector3 & | ref, |
|
|
double | prec = math::eps ) const |
Determine if a vector has the same sense as this
- Parameters
-
| ref | A vector |
| prec | The precision of the test |
- Returns
- True if the vector has the same sense as this
◆ isXyPlane()
| bool active::geometry::Vector3::isXyPlane |
( |
double | prec = math::eps | ) |
const |
|
inline |
Determine if the vector is in the plane of the x/y axis
- Returns
- True if the vector is in the plane of the x/y axis
◆ isZAxis()
| bool active::geometry::Vector3::isZAxis |
( |
double | prec = math::eps | ) |
const |
|
inline |
Determine if the vector is along the z axis
- Returns
- True if the vector is along the z axis
◆ magnitude()
| double Vector3::magnitude |
( |
| ) |
const |
Get the magnitude of the vector
- Returns
- The magnitude of the vector
◆ modulus()
| double active::geometry::Vector3::modulus |
( |
| ) |
const |
|
inline |
Get the modulus of the vector
- Returns
- The modulus of the vector
◆ normalised()
| Vector3 Vector3::normalised |
( |
| ) |
const |
Get the normalised vector
- Returns
- The normalised vector
◆ operator Point()
| Vector3::operator Point |
( |
| ) |
const |
Conversion operator
- Returns
- Point derived from this
◆ operator*() [1/3]
Multiplication operator
- Parameters
-
| matrix | The matrix to multiply by |
- Returns
- The resultant vector
◆ operator*() [2/3]
Multiplication operator
- Parameters
-
| matrix | The matrix to multiply by |
- Returns
- The resultant vector
◆ operator*() [3/3]
| Vector3 Vector3::operator* |
( |
double | scale | ) |
const |
Multiplication operator
- Parameters
-
- Returns
- The resultant vector
◆ operator*=() [1/3]
Multiplication and assignment operator
- Parameters
-
| matrix | The matrix to multiply by |
- Returns
- A reference to this
◆ operator*=() [2/3]
Multiplication and assignment operator
- Parameters
-
| matrix | The matrix to multiply by |
- Returns
- A reference to this
◆ operator*=() [3/3]
| Vector3 & Vector3::operator*= |
( |
double | scale | ) |
|
Multiplication and assignment operator
- Parameters
-
- Returns
- The resultant vector
◆ operator+()
Addition operator
- Parameters
-
- Returns
- The resultant vector
◆ operator+=()
Addition and assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator-()
Subtraction operator
- Parameters
-
| vect | The vector to substract |
- Returns
- The resultant vector
◆ operator-=()
Subtraction and assignment operator
- Parameters
-
| vect | The vector to subtract |
- Returns
- A reference to this
◆ operator=() [1/3]
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator=() [2/3]
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator=() [3/3]
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator[]() [1/2]
| double & active::geometry::Vector3::operator[] |
( |
int | row | ) |
|
|
inline |
Subscript operator
- Parameters
-
- Returns
- The requested coefficient
◆ operator[]() [2/2]
| const double active::geometry::Vector3::operator[] |
( |
int | row | ) |
const |
|
inline |
Subscript operator
- Parameters
-
- Returns
- The requested coefficient
◆ vectorProduct()
Get the vectorial product of two vectors
- Parameters
-
- Returns
- The vectorial product (orthogonal to both)
The documentation for this class was generated from the following files:
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Vector3.h
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Vector3.cpp