pub struct ArrayPose {
pub translation_m: [f64; 3],
pub rotation_rad: [f64; 3],
/* private fields */
}Expand description
Rigid pose mapping array-local coordinates into sample coordinates.
Rotations are active, right-handed, extrinsic rotations about the fixed
sample x, y, then z axes. A column vector is transformed with
Rz(rz) * Ry(ry) * Rx(rx) before translation is added.
Fields§
§translation_m: [f64; 3]Translation (x, y, z) in metres.
rotation_rad: [f64; 3]Extrinsic fixed-axis (rx, ry, rz) rotation in radians.
Implementations§
Source§impl ArrayPose
impl ArrayPose
Sourcepub const fn from_translation(translation_m: [f64; 3]) -> Self
pub const fn from_translation(translation_m: [f64; 3]) -> Self
Creates a pure translation in metres.
Sourcepub const fn from_translation_and_extrinsic_xyz_radians(
translation_m: [f64; 3],
rotation_rad: [f64; 3],
) -> Self
pub const fn from_translation_and_extrinsic_xyz_radians( translation_m: [f64; 3], rotation_rad: [f64; 3], ) -> Self
Creates a translation and active extrinsic XYZ rotation in radians.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArrayPose
impl<'de> Deserialize<'de> for ArrayPose
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ArrayPose
Auto Trait Implementations§
impl Freeze for ArrayPose
impl RefUnwindSafe for ArrayPose
impl Send for ArrayPose
impl Sync for ArrayPose
impl Unpin for ArrayPose
impl UnsafeUnpin for ArrayPose
impl UnwindSafe for ArrayPose
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more