#[repr(C)]pub struct Vector3 {
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
UnityEngine.Vector3.
Fields§
§x: f32§y: f32§z: f32Implementations§
Source§impl Vector3
impl Vector3
pub const ZERO: Self
pub const ONE: Self
pub const UP: Self
pub const FORWARD: Self
pub const fn new(x: f32, y: f32, z: f32) -> Self
pub fn dot(self, o: Self) -> f32
pub fn magnitude(self) -> f32
pub fn normalized(self) -> Self
pub fn distance(self, o: Self) -> f32
Trait Implementations§
impl Copy for Vector3
Source§impl Il2CppValue for Vector3
impl Il2CppValue for Vector3
impl StructuralPartialEq for Vector3
Auto Trait Implementations§
impl Freeze for Vector3
impl RefUnwindSafe for Vector3
impl Send for Vector3
impl Sync for Vector3
impl Unpin for Vector3
impl UnsafeUnpin for Vector3
impl UnwindSafe for Vector3
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