A 1x4 vector class.
More...
#include <Vector4.h>
|
|
using | Unique = std::unique_ptr<Vector4> |
| | Unique pointer.
|
| |
|
using | Shared = std::shared_ptr<Vector4> |
| | Shared pointer.
|
| |
|
using | Option = std::optional<Vector4> |
| | Optional.
|
| |
◆ Vector4() [1/6]
◆ Vector4() [2/6]
| Vector4::Vector4 |
( |
const double & | x, |
|
|
const double & | y, |
|
|
const double & | z ) |
Constructor
- Parameters
-
| x | X coefficient |
| y | Y coefficient |
| z | Z coefficient |
◆ Vector4() [3/6]
| Vector4::Vector4 |
( |
const Point & | source | ) |
|
Constructor
- Parameters
-
| source | A point to construct the vector from |
◆ Vector4() [4/6]
| Vector4::Vector4 |
( |
const Line & | source | ) |
|
Constructor
- Parameters
-
| source | A line to construct the vector from |
◆ Vector4() [5/6]
| Vector4::Vector4 |
( |
const Vector3 & | source | ) |
|
◆ Vector4() [6/6]
| Vector4::Vector4 |
( |
const Vector4 & | source | ) |
|
Copy constructor
- Parameters
-
◆ ~Vector4()
| virtual active::geometry::Vector4::~Vector4 |
( |
| ) |
|
|
virtualdefault |
◆ angleTo()
| double Vector4::angleTo |
( |
const Vector4 & | ref | ) |
const |
Get the angle between a vector and this
- Parameters
-
- Returns
- The angle between the vector and this
◆ dotProduct()
| double Vector4::dotProduct |
( |
const Vector4 & | ref | ) |
const |
Get the dot product of two vectors
- Parameters
-
- Returns
- The dot product
◆ isEmpty()
| bool Vector4::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 Vector4::isParallelTo |
( |
const Vector4 & | 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 Vector4::isPerpendicularTo |
( |
const Vector4 & | 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 Vector4::isSameSense |
( |
const Vector4 & | 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
◆ magnitude()
| double Vector4::magnitude |
( |
| ) |
const |
Get the magnitude of the vector
- Returns
- The magnitude of the vector
◆ modulus()
| double active::geometry::Vector4::modulus |
( |
| ) |
const |
|
inline |
Get the modulus of the vector
- Returns
- The modulus of the vector
◆ normalised()
| Vector4 Vector4::normalised |
( |
| ) |
const |
Get the normalised vector
- Returns
- The normalised vector
◆ operator Point()
| Vector4::operator Point |
( |
| ) |
const |
Conversion operator
- Returns
- Point derived from this
◆ operator*() [1/2]
Multiplication operator
- Parameters
-
| matrix | The matrix to multiply by |
- Returns
- The resultant vector
◆ operator*() [2/2]
| Vector4 Vector4::operator* |
( |
double | scale | ) |
const |
Multiplication operator
- Parameters
-
- Returns
- The resultant vector
◆ operator*=() [1/2]
Multiplication and assignment operator
- Parameters
-
| matrix | The matrix to multiply by |
- Returns
- A reference to this
◆ operator*=() [2/2]
| Vector4 & Vector4::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/4]
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator=() [2/4]
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator=() [3/4]
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator=() [4/4]
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator[]() [1/2]
| double & active::geometry::Vector4::operator[] |
( |
int | row | ) |
|
|
inline |
Subscript operator
- Parameters
-
- Returns
- The requested coefficient
◆ operator[]() [2/2]
| const double active::geometry::Vector4::operator[] |
( |
int | row | ) |
const |
|
inline |
Subscript operator
- Parameters
-
- Returns
- The requested coefficient
◆ vectorProduct()
Get the vectorial product of two vectors (a perpendicular vector)
- Parameters
-
- Returns
- The vectorial product
The documentation for this class was generated from the following files:
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Vector4.h
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Vector4.cpp