#[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 PartialEq<Point3D> for Point3D
impl PartialEq<Point3D> for Point3D
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.