pub struct CameraPose {
pub position: Point3<f64>,
pub orientation: UnitQuaternion<f64>,
pub timestamp_ns: u64,
pub confidence: f32,
}Expand description
Camera pose (position and orientation)
Fields§
§position: Point3<f64>Position in world space (meters)
orientation: UnitQuaternion<f64>Orientation as unit quaternion
timestamp_ns: u64Timestamp in nanoseconds
confidence: f32Tracking confidence (0.0 - 1.0)
Implementations§
Source§impl CameraPose
impl CameraPose
Sourcepub fn new(
position: Point3<f64>,
orientation: UnitQuaternion<f64>,
timestamp_ns: u64,
) -> Self
pub fn new( position: Point3<f64>, orientation: UnitQuaternion<f64>, timestamp_ns: u64, ) -> Self
Create new camera pose
Sourcepub fn interpolate(&self, other: &Self, t: f64) -> Self
pub fn interpolate(&self, other: &Self, t: f64) -> Self
Interpolate between two poses
Trait Implementations§
Source§impl Clone for CameraPose
impl Clone for CameraPose
Source§fn clone(&self) -> CameraPose
fn clone(&self) -> CameraPose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CameraPose
Source§impl Debug for CameraPose
impl Debug for CameraPose
Source§impl Default for CameraPose
impl Default for CameraPose
Source§impl<'de> Deserialize<'de> for CameraPose
impl<'de> Deserialize<'de> for CameraPose
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
Source§impl PartialEq for CameraPose
impl PartialEq for CameraPose
Source§fn eq(&self, other: &CameraPose) -> bool
fn eq(&self, other: &CameraPose) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CameraPose
impl Serialize for CameraPose
impl StructuralPartialEq for CameraPose
Auto Trait Implementations§
impl Freeze for CameraPose
impl RefUnwindSafe for CameraPose
impl Send for CameraPose
impl Sync for CameraPose
impl Unpin for CameraPose
impl UnsafeUnpin for CameraPose
impl UnwindSafe for CameraPose
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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