BinOp
Provides binary operations for KinematicState instances.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Scales the kinematic state by a scalar value. Each component (position, velocity, acceleration) is multiplied by the scalar.
Scales the kinematic state by a scalar value. Each component (position, velocity, acceleration) is multiplied by the scalar.
Value parameters
- scalar
-
The scaling factor.
Attributes
- Returns
-
A new KinematicState with scaled components.
Subtracts another kinematic state from this one. Performs component-wise subtraction: position - position, velocity - velocity, acceleration - acceleration.
Subtracts another kinematic state from this one. Performs component-wise subtraction: position - position, velocity - velocity, acceleration - acceleration.
Value parameters
- second
-
The kinematic state to subtract.
Attributes
- Returns
-
A new KinematicState representing the difference.
Computes the cross product of two kinematic states. The cross product is applied component-wise, with velocity and acceleration terms derived to maintain consistency:
Computes the cross product of two kinematic states. The cross product is applied component-wise, with velocity and acceleration terms derived to maintain consistency:
- Position: P₁ × P₂
- Velocity: (V₁ × P₂) + (P₁ × V₂)
- Acceleration: (A₁ × P₂) + (P₁ × A₂) + 2(V₁ × V₂)
where P₁, V₁, A₁ are the position, velocity, and acceleration of the first state, and P₂, V₂, A₂ are those of the second state.
Value parameters
- second
-
The kinematic state to compute the cross product with.
Attributes
- Returns
-
A new KinematicState representing the cross product.