pub struct DPlacement {
pub position: DVector,
pub orientation: Euler,
}Expand description
Double-precision position with single-precision normalized orientation.
Unlike the ABI structure, this high-level type has no explicit alignment padding. It is safe to copy, compare, serialize, and retain after the SDK callback returns.
Fields§
§position: DVector§orientation: EulerTrait Implementations§
Source§impl Clone for DPlacement
impl Clone for DPlacement
Source§fn clone(&self) -> DPlacement
fn clone(&self) -> DPlacement
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 DPlacement
Source§impl Debug for DPlacement
impl Debug for DPlacement
Source§impl Default for DPlacement
impl Default for DPlacement
Source§fn default() -> DPlacement
fn default() -> DPlacement
Returns the “default value” for a type. Read more
Source§impl From<ScsDPlacement> for DPlacement
impl From<ScsDPlacement> for DPlacement
Source§fn from(value: ScsDPlacement) -> Self
fn from(value: ScsDPlacement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DPlacement
impl PartialEq for DPlacement
Source§impl SdkValue for DPlacement
impl SdkValue for DPlacement
Source§const VALUE_TYPE: ValueType = ValueType::DPlacement
const VALUE_TYPE: ValueType = ValueType::DPlacement
High-level discriminator retained by type-erased framework descriptors.
Source§const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_DPLACEMENT
const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_DPLACEMENT
Numeric discriminator passed across the C ABI.
type Decoded<'a> = DPlacement
fn decode(value: ValueRef<'_>) -> Option<Self::Decoded<'_>>
impl StructuralPartialEq for DPlacement
Auto Trait Implementations§
impl Freeze for DPlacement
impl RefUnwindSafe for DPlacement
impl Send for DPlacement
impl Sync for DPlacement
impl Unpin for DPlacement
impl UnsafeUnpin for DPlacement
impl UnwindSafe for DPlacement
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