[−][src]Struct skia_safe::Point3
Fields
x: scalar
y: scalar
z: scalar
Methods
impl Point3
[src]
pub const fn new(x: scalar, y: scalar, z: scalar) -> Self
[src]
pub fn set(&mut self, x: scalar, y: scalar, z: scalar)
[src]
pub fn length_xyz(x: scalar, y: scalar, z: scalar) -> scalar
[src]
pub fn length(&self) -> scalar
[src]
pub fn normalize(&mut self) -> bool
[src]
#[must_use]
pub fn normalized(&self) -> Option<Self>
[src]
#[must_use]
pub fn scaled(&self, scale: scalar) -> Self
[src]
pub fn scale(&mut self, value: scalar)
[src]
pub fn is_finite(&self) -> bool
[src]
pub fn dot_product(a: Self, b: Self) -> scalar
[src]
pub fn dot(&self, vec: Self) -> scalar
[src]
pub fn cross_product(a: Self, b: Self) -> Self
[src]
pub fn cross(&self, vec: Self) -> Self
[src]
Trait Implementations
impl Default for Point3
[src]
impl Clone for Point3
[src]
impl PartialEq<Point3> for Point3
[src]
impl From<(f32, f32, f32)> for Point3
[src]
impl Copy for Point3
[src]
impl Add<Point3> for Point3
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl Sub<Point3> for Point3
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
impl Neg for Point3
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl AddAssign<Point3> for Point3
[src]
fn add_assign(&mut self, rhs: Point3)
[src]
impl SubAssign<Point3> for Point3
[src]
fn sub_assign(&mut self, rhs: Point3)
[src]
impl Debug for Point3
[src]
Auto Trait Implementations
impl Send for Point3
impl Unpin for Point3
impl Sync for Point3
impl UnwindSafe for Point3
impl RefUnwindSafe for Point3
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,