pub struct RPlusAlgebra(/* private fields */);Expand description
Lie algebra of ℝ⁺, isomorphic to (ℝ, +)
Elements represent infinitesimal scaling factors. The exponential map converts these to finite scalings: exp(x) = eˣ.
§Examples
use lie_groups::rplus::RPlusAlgebra;
use lie_groups::traits::LieAlgebra;
let v = RPlusAlgebra::from_components(&[0.5]);
let w = v.scale(2.0);
assert!((w.value() - 1.0).abs() < 1e-10);Implementations§
Trait Implementations§
Source§impl AbsDiffEq for RPlusAlgebra
impl AbsDiffEq for RPlusAlgebra
Source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
Source§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of
AbsDiffEq::abs_diff_eq.Source§impl Add<&RPlusAlgebra> for &RPlusAlgebra
impl Add<&RPlusAlgebra> for &RPlusAlgebra
Source§type Output = RPlusAlgebra
type Output = RPlusAlgebra
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &RPlusAlgebra) -> RPlusAlgebra
fn add(self, rhs: &RPlusAlgebra) -> RPlusAlgebra
Performs the
+ operation. Read moreSource§impl Add<&RPlusAlgebra> for RPlusAlgebra
impl Add<&RPlusAlgebra> for RPlusAlgebra
Source§type Output = RPlusAlgebra
type Output = RPlusAlgebra
The resulting type after applying the
+ operator.Source§fn add(self, rhs: &RPlusAlgebra) -> RPlusAlgebra
fn add(self, rhs: &RPlusAlgebra) -> RPlusAlgebra
Performs the
+ operation. Read moreSource§impl Add<RPlusAlgebra> for &RPlusAlgebra
impl Add<RPlusAlgebra> for &RPlusAlgebra
Source§type Output = RPlusAlgebra
type Output = RPlusAlgebra
The resulting type after applying the
+ operator.Source§fn add(self, rhs: RPlusAlgebra) -> RPlusAlgebra
fn add(self, rhs: RPlusAlgebra) -> RPlusAlgebra
Performs the
+ operation. Read moreSource§impl Add for RPlusAlgebra
impl Add for RPlusAlgebra
Source§impl Clone for RPlusAlgebra
impl Clone for RPlusAlgebra
Source§fn clone(&self) -> RPlusAlgebra
fn clone(&self) -> RPlusAlgebra
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RPlusAlgebra
impl Debug for RPlusAlgebra
Source§impl Display for RPlusAlgebra
impl Display for RPlusAlgebra
Source§impl LieAlgebra for RPlusAlgebra
impl LieAlgebra for RPlusAlgebra
Source§fn basis_element(i: usize) -> Self
fn basis_element(i: usize) -> Self
Get the i-th basis element of the Lie algebra. Read more
Source§fn from_components(components: &[f64]) -> Self
fn from_components(components: &[f64]) -> Self
Construct algebra element from basis coordinates. Read more
Source§impl Mul<RPlusAlgebra> for f64
impl Mul<RPlusAlgebra> for f64
Source§type Output = RPlusAlgebra
type Output = RPlusAlgebra
The resulting type after applying the
* operator.Source§fn mul(self, rhs: RPlusAlgebra) -> RPlusAlgebra
fn mul(self, rhs: RPlusAlgebra) -> RPlusAlgebra
Performs the
* operation. Read moreSource§impl Mul<f64> for RPlusAlgebra
impl Mul<f64> for RPlusAlgebra
Source§impl Neg for RPlusAlgebra
impl Neg for RPlusAlgebra
Source§impl PartialEq for RPlusAlgebra
impl PartialEq for RPlusAlgebra
Source§impl RelativeEq for RPlusAlgebra
impl RelativeEq for RPlusAlgebra
Source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
A test for equality that uses a relative comparison if the values are far apart.
Source§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
The inverse of
RelativeEq::relative_eq.Source§impl Sub for RPlusAlgebra
impl Sub for RPlusAlgebra
impl Copy for RPlusAlgebra
impl StructuralPartialEq for RPlusAlgebra
Auto Trait Implementations§
impl Freeze for RPlusAlgebra
impl RefUnwindSafe for RPlusAlgebra
impl Send for RPlusAlgebra
impl Sync for RPlusAlgebra
impl Unpin for RPlusAlgebra
impl UnsafeUnpin for RPlusAlgebra
impl UnwindSafe for RPlusAlgebra
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.