pub struct DVector {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A three-dimensional double-precision vector reported by the SDK.
World positions use double precision because ETS2 and ATS maps are large enough for single-precision coordinates to lose visible accuracy.
Fields§
§x: f64§y: f64§z: f64Trait Implementations§
impl Copy for DVector
Source§impl From<ScsDVector> for DVector
impl From<ScsDVector> for DVector
Source§fn from(value: ScsDVector) -> Self
fn from(value: ScsDVector) -> Self
Converts to this type from the input type.
Source§impl SdkValue for DVector
impl SdkValue for DVector
Source§const VALUE_TYPE: ValueType = ValueType::DVector
const VALUE_TYPE: ValueType = ValueType::DVector
High-level discriminator retained by type-erased framework descriptors.
Source§const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_DVECTOR
const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_DVECTOR
Numeric discriminator passed across the C ABI.
type Decoded<'a> = DVector
fn decode(value: ValueRef<'_>) -> Option<Self::Decoded<'_>>
impl StructuralPartialEq for DVector
Auto Trait Implementations§
impl Freeze for DVector
impl RefUnwindSafe for DVector
impl Send for DVector
impl Sync for DVector
impl Unpin for DVector
impl UnsafeUnpin for DVector
impl UnwindSafe for DVector
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