Struct arci::BaseVelocity [−][src]
Fields
x: f64
y: f64
theta: f64
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Multiply scalar value for velocity
Example
use assert_approx_eq::assert_approx_eq; use arci::BaseVelocity; let vel = BaseVelocity::new(0.1, -0.2, 1.0); let twice = vel * 2.0; assert_approx_eq!(twice.x, 0.2); assert_approx_eq!(twice.y, -0.4); assert_approx_eq!(twice.theta, 2.0);
Auto Trait Implementations
impl RefUnwindSafe for BaseVelocity
impl Send for BaseVelocity
impl Sync for BaseVelocity
impl Unpin for BaseVelocity
impl UnwindSafe for BaseVelocity
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.