Skip to main content

SE3

Struct SE3 

Source
pub struct SE3(/* private fields */);
Expand description

SE(3) transformation represented as an isometry matrix.

An SE(3) transformation combines a rotation and a translation in 3D space. It combines a rotation matrix $R\in \text{SO}(3)$ and a translation vector $t \in \mathbb{R}^3$

Implementations§

Source§

impl SE3

Source

pub fn new(translation: Vector3D, axis_angle: Vector3D) -> Self

Creates a new SE(3) transformation from a rotation (given as axis-angle) and a translation.

Source

pub fn from_parts(translation: Vector3D, rotation: SpatialRotation) -> Self

Creates a new SE(3) transformation from a rotation and a translation.

Source

pub fn identity() -> Self

Creates a new identity SE(3) transformation, with $R = I_3$ and $t = 0_3$.

Source

pub fn inverse(&self) -> Self

Returns the inverse of the SE(3) transformation.

Source

pub fn translation(&self) -> Vector3D

Returns the translation component of the SE(3) transformation.

Source

pub fn rotation(&self) -> SpatialRotation

Returns the rotation component of the SE(3) transformation.

Source

pub fn action_matrix(&self) -> Matrix6<f64>

Computes the action matrix of the SE(3) transformation.

Mathematically, the action matrix is: $$\begin{bmatrix}R & [t]_X R \\ 0 & R\end{bmatrix}$$ where $R$ is the rotation matrix and $[t]_X$ is the skew-symmetric matrix of the translation vector $t$.

Source

pub fn dual_matrix(&self) -> Matrix6<f64>

Computes the dual action matrix of the SE(3) transformation.

Mathematically, the action matrix is: $$\begin{bmatrix}R & 0 \\ [t]_X R & R\end{bmatrix}$$ where $R$ is the rotation matrix and $[t]_X$ is the skew-symmetric matrix of the translation vector $t$.

Source

pub fn inv_matrix(&self) -> Matrix6<f64>

Computes the inverse of the action matrix of the SE(3) transformation.

Source§

impl SE3

Source

pub fn act<T: ActSE3>(&self, obj: &T) -> T

Applies the SE(3) transformation to an object implementing the ActSE3 trait.

Source

pub fn act_inv<T: ActSE3>(&self, obj: &T) -> T

Applies the inverse SE(3) transformation to an object implementing the ActSE3 trait.

Trait Implementations§

Source§

impl Clone for SE3

Source§

fn clone(&self) -> SE3

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SE3

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SE3

Source§

fn default() -> SE3

Returns the “default value” for a type. Read more
Source§

impl Display for SE3

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Mul<&SE3> for &SE3

Source§

type Output = SE3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SE3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&SE3> for SE3

Source§

type Output = SE3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &SE3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<SE3> for &SE3

Source§

type Output = SE3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: SE3) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for SE3

Source§

type Output = SE3

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl PartialEq for SE3

Source§

fn eq(&self, other: &SE3) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for SE3

Source§

impl StructuralPartialEq for SE3

Auto Trait Implementations§

§

impl Freeze for SE3

§

impl RefUnwindSafe for SE3

§

impl Send for SE3

§

impl Sync for SE3

§

impl Unpin for SE3

§

impl UnsafeUnpin for SE3

§

impl UnwindSafe for SE3

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,