Struct scripthookv::types::Vector3 [−][src]
#[repr(C, align(1))]pub struct Vector3 {
pub x: f32,
pub y: f32,
pub z: f32,
// some fields omitted
}
Expand description
A vector3 representation that can be used with natives.
To make it compatible with natives every field is 8 byte aligned.
Fields
x: f32
y: f32
z: f32
Implementations
Creates a normalized copy of the vector.
Gets the distance to another vector.
Gets the distance to another vector ignoring the z coordinate.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Vector3
impl UnwindSafe for Vector3
Blanket Implementations
Mutably borrows from an owned value. Read more