#[repr(transparent)]pub struct Point3D { /* private fields */ }
Implementations
sourceimpl Point3D
impl Point3D
pub fn cross(&self, b: &Point3D) -> Point3D
pub fn distance(&self, b: &Point3D) -> (f32, Vec3)
pub fn dot(&self, b: &Point3D) -> f32
pub fn interpolate(&self, b: &Point3D, factor: f64) -> Point3D
pub fn length(&self) -> f32
pub fn near(&self, b: &Point3D, epsilon: f32) -> bool
pub fn normalize(&self) -> Point3D
pub fn normalize_viewport(
&self,
viewport: &Rect,
z_near: f32,
z_far: f32
) -> Point3D
pub fn scale(&self, factor: f32) -> Point3D
pub fn to_vec3(&self) -> Vec3
pub fn zero() -> Point3D
Trait Implementations
sourceimpl StaticType for Point3D
impl StaticType for Point3D
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for Point3D
impl Eq for Point3D
Auto Trait Implementations
impl RefUnwindSafe for Point3D
impl Send for Point3D
impl Sync for Point3D
impl Unpin for Point3D
impl UnwindSafe for Point3D
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.