|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
A class representing a vector in rectangular coordinates. More...
#include "geometry_ops.h"
Public Member Functions | |
| Vec3 () noexcept=default | |
| Vec3 (const Vec3 &) noexcept=default | |
| Vec3 (Vec3 &&) noexcept=default | |
| Vec3 & | operator= (const Vec3 &) noexcept=default |
| Vec3 & | operator= (Vec3 &&) noexcept=default |
| constexpr | Vec3 (const RealType x, const RealType y, const RealType z) noexcept |
| Parameterized constructor for Vec3. | |
| Vec3 (const SVec3 &svec) noexcept | |
| Constructs a rectangular vector from a spherical SVec3. | |
| Vec3 & | operator+= (const Vec3 &b) noexcept |
| Addition assignment operator for Vec3. | |
| Vec3 & | operator-= (const Vec3 &b) noexcept |
| Subtraction assignment operator for Vec3. | |
| Vec3 & | operator*= (const Vec3 &b) noexcept |
| Multiplication assignment operator for Vec3. | |
| Vec3 & | operator*= (const Matrix3 &m) noexcept |
| Matrix multiplication assignment for Vec3. | |
| Vec3 & | operator*= (RealType b) noexcept |
| Scalar multiplication assignment for Vec3. | |
| Vec3 & | operator/= (RealType b) noexcept |
| Scalar division assignment for Vec3. | |
| Vec3 | operator+ (const RealType value) const |
| Addition operator for Vec3. | |
| Vec3 | operator- () const |
| RealType | length () const noexcept |
| Calculates the length (magnitude) of the vector. | |
Public Attributes | |
| RealType | x {} |
| The x component of the vector. | |
| RealType | y {} |
| The y component of the vector. | |
| RealType | z {} |
| The z component of the vector. | |
A class representing a vector in rectangular coordinates.
Definition at line 105 of file geometry_ops.h.
|
defaultnoexcept |
|
defaultnoexcept |
|
constexprnoexcept |
Parameterized constructor for Vec3.
| x | The x component. |
| y | The y component. |
| z | The z component. |
Definition at line 125 of file geometry_ops.h.
Constructs a rectangular vector from a spherical SVec3.
| svec | A spherical vector (SVec3) to convert. |
Definition at line 17 of file geometry_ops.cpp.
|
noexcept |
|
noexcept |
Matrix multiplication assignment for Vec3.
| m | The matrix to multiply by. |
Definition at line 47 of file geometry_ops.cpp.
|
noexcept |
|
noexcept |
| Vec3 math::Vec3::operator+ | ( | const RealType | value | ) | const |
|
noexcept |
| Vec3 math::Vec3::operator- | ( | ) | const |
|
noexcept |
|
noexcept |
|
defaultnoexcept |
|
defaultnoexcept |
| RealType math::Vec3::x {} |
The x component of the vector.
Definition at line 108 of file geometry_ops.h.
Referenced by fers_get_interpolated_motion_path(), math::from_json(), serial::KmlGenerator::generateKml(), length(), operator*=(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), math::operator/(), and math::to_json().
| RealType math::Vec3::y {} |
The y component of the vector.
Definition at line 109 of file geometry_ops.h.
Referenced by fers_get_interpolated_motion_path(), math::from_json(), serial::KmlGenerator::generateKml(), length(), operator*=(), operator+(), operator-(), math::operator/(), and math::to_json().
| RealType math::Vec3::z {} |
The z component of the vector.
Definition at line 110 of file geometry_ops.h.
Referenced by fers_get_interpolated_motion_path(), math::from_json(), serial::KmlGenerator::generateKml(), length(), operator*=(), operator+(), operator-(), math::operator/(), and math::to_json().