Class SpatialAcceleration#
Defined in File SpatialVector.h
Inheritance Relationships#
Base Type#
public Karana::Math::SpatialVector(Class SpatialVector)
Class Documentation#
-
class SpatialAcceleration : public Karana::Math::SpatialVector#
A velocity SpatialVector.
Public Functions
-
SpatialAcceleration operator*(double scale) const#
Scalar multiplication.
- Parameters:
scale – Scalar value to multiply by.
- Returns:
Scaled SpatialAcceleration.
-
SpatialAcceleration operator+(const SpatialAcceleration &other) const#
Component-wise addition.
- Parameters:
other – The SpatialAcceleration to add to this one.
- Returns:
Resulting SpatialAcceleration sum.
-
SpatialAcceleration &operator+=(const SpatialAcceleration &other)#
In-place component-wise addition.
- Parameters:
other – The SpatialAcceleration to add to this one in-place.
- Returns:
Reference to this object.
-
SpatialAcceleration operator-() const#
Negation operator.
- Returns:
Negated SpatialAcceleration.
-
SpatialAcceleration operator-(const SpatialAcceleration &other) const#
Subtract another SpatialAcceleration.
- Parameters:
other – The SpatialAcceleration to subtract from this one.
- Returns:
Resulting SpatialAcceleration.
-
SpatialAcceleration operator-=(const SpatialAcceleration &other)#
In-place subtraction.
- Parameters:
other – The SpatialAcceleration to subtract from this one.
- Returns:
Reference to this object.
-
SpatialAcceleration operator+(const Vec6 &vec) const#
Add a Vec6 to this spatial acceleration.
- Parameters:
vec – The 6D acceleration to add to this SpatialAcceleration.
- Returns:
Resulting SpatialAcceleration.
-
SpatialAcceleration operator-(const Vec6 &vec) const#
Subtract a Vec6 from this spatial acceleration.
- Parameters:
vec – The 6D acceleration to subtract from this SpatialAcceleration.
- Returns:
Resulting SpatialAcceleration.
-
SpatialAcceleration cross(const SpatialAcceleration &other)#
Compute 6-D cross product with another spatial acceleration.
\[\begin{split} A \times B = \tilde A B = \begin{bmatrix} \tilde A_w & \tilde A_v \\ 0 & \tilde A_w \end{bmatrix} \begin{bmatrix} B_w \\ B_v \end{bmatrix} \end{split}\]- Parameters:
other – The SpatialAcceleration to compute the cross product with.
- Returns:
Resulting SpatialAcceleration.
-
SpatialAcceleration barprod(const SpatialAcceleration &other)#
Compute the bar product with another spatial acceleration.
\[\begin{split} \bar A B = - {\tilde A}^* B = \begin{bmatrix} \tilde A_w & \tilde A_v \\ 0 & \tilde A_w \end{bmatrix} \begin{bmatrix} B_w \\ B_v \end{bmatrix} \end{split}\]- Parameters:
other – The SpatialAcceleration to compute the bar product with.
- Returns:
Resulting SpatialAcceleration.
-
SpatialAcceleration multiplyFromLeft(const Mat66 &mat) const#
Multiply the acceleration from left with a matrix, i.e v * mat.
- Parameters:
mat – Matrix to multiply.
- Returns:
Resulting SpatialAcceleration.
-
SpatialVector()#
Construct initialized to zero.
-
SpatialVector(const Vec6 &sv)#
Construct using a 6 vector. The first 3 components will be put into w and the last 3 components will be put into v.
- Parameters:
sv – 6-element vector representing the entire spatial vector.
-
SpatialVector(const Vec3 &w, const Vec3 &v)#
Construct using two 3-element vectors. The first will become w and the second will become v.
- Parameters:
w – Angular portion of the spatial vector.
v – Linear portion of the spatial vector.
-
SpatialVector(const SpatialVector &other)#
Copy constructor.
- Parameters:
other – The SpatialVector to copy from.
-
SpatialVector(SpatialVector &&other) noexcept#
Move constructor.
- Parameters:
other – The SpatialVector to move from.
-
SpatialAcceleration operator*(double scale) const#