pub type Vector = Vec3;Expand description
3D Vector representing position, velocity, direction, etc. This is the most commonly used vector type in UE.
Aliased Type§
#[repr(C)]pub struct Vector {
pub x: f32,
pub y: f32,
pub z: f32,
}Fields§
§x: f32§y: f32§z: f32Trait Implementations§
Source§impl BinarySerializable for Vector
impl BinarySerializable for Vector
Source§impl VectorExt for Vector
impl VectorExt for Vector
Source§fn size_squared(self) -> f32
fn size_squared(self) -> f32
Get the squared size (magnitude squared) - faster than size()
Source§fn is_nearly_zero(self, tolerance: f32) -> bool
fn is_nearly_zero(self, tolerance: f32) -> bool
Check if the vector is nearly zero
Source§fn is_normalized(self) -> bool
fn is_normalized(self) -> bool
Check if the vector is normalized (unit length)
Source§fn get_safe_normal(self, tolerance: f32) -> Vector
fn get_safe_normal(self, tolerance: f32) -> Vector
Get a normalized copy of the vector