[][src]Struct skia_safe::Point3

#[repr(C)]
pub struct Point3 {
    pub x: scalar,
    pub y: scalar,
    pub z: scalar,
}

Fields

x: scalary: scalarz: 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.

impl Sub<Point3> for Point3[src]

type Output = Self

The resulting type after applying the - operator.

impl Neg for Point3[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<Point3> for Point3[src]

impl SubAssign<Point3> for Point3[src]

impl Debug for Point3[src]

Auto Trait Implementations

impl Unpin for Point3

impl Sync for Point3

impl Send for Point3

impl UnwindSafe for Point3

impl RefUnwindSafe for Point3

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]