pub struct FVector {
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
A three-dimensional single-precision vector reported by the SDK.
In vehicle-local space, positive X points right, positive Y points up, and positive Z points backwards. In world space, positive X points east, positive Y points up, and positive Z points south.
Fields§
§x: f32§y: f32§z: f32Trait Implementations§
impl Copy for FVector
Source§impl From<ScsFVector> for FVector
impl From<ScsFVector> for FVector
Source§fn from(value: ScsFVector) -> Self
fn from(value: ScsFVector) -> Self
Converts to this type from the input type.
Source§impl SdkValue for FVector
impl SdkValue for FVector
Source§const VALUE_TYPE: ValueType = ValueType::FVector
const VALUE_TYPE: ValueType = ValueType::FVector
High-level discriminator retained by type-erased framework descriptors.
Source§const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_FVECTOR
const TYPE: ScsValueType = sys::SCS_VALUE_TYPE_FVECTOR
Numeric discriminator passed across the C ABI.
type Decoded<'a> = FVector
fn decode(value: ValueRef<'_>) -> Option<Self::Decoded<'_>>
impl StructuralPartialEq for FVector
Auto Trait Implementations§
impl Freeze for FVector
impl RefUnwindSafe for FVector
impl Send for FVector
impl Sync for FVector
impl Unpin for FVector
impl UnsafeUnpin for FVector
impl UnwindSafe for FVector
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