[][src]Struct skia_bindings::SkPoint

#[repr(C)]
pub struct SkPoint {
    pub fX: SkScalar,
    pub fY: SkScalar,
}

Fields

fX: SkScalarfY: SkScalar

Methods

impl SkPoint[src]

pub unsafe fn Make(x: SkScalar, y: SkScalar) -> SkPoint[src]

pub unsafe fn x(&self) -> SkScalar[src]

pub unsafe fn y(&self) -> SkScalar[src]

pub unsafe fn isZero(&self) -> bool[src]

pub unsafe fn set(&mut self, x: SkScalar, y: SkScalar)[src]

pub unsafe fn iset(&mut self, x: i32, y: i32)[src]

pub unsafe fn iset1(&mut self, p: *const SkIPoint)[src]

pub unsafe fn setAbs(&mut self, pt: *const SkPoint)[src]

pub unsafe fn Offset(
    points: *mut SkPoint,
    count: c_int,
    offset: *const SkVector
)
[src]

pub unsafe fn Offset1(
    points: *mut SkPoint,
    count: c_int,
    dx: SkScalar,
    dy: SkScalar
)
[src]

pub unsafe fn offset(&mut self, dx: SkScalar, dy: SkScalar)[src]

pub unsafe fn length(&self) -> SkScalar[src]

pub unsafe fn distanceToOrigin(&self) -> SkScalar[src]

pub unsafe fn normalize(&mut self) -> bool[src]

pub unsafe fn setNormalize(&mut self, x: SkScalar, y: SkScalar) -> bool[src]

pub unsafe fn setLength(&mut self, length: SkScalar) -> bool[src]

pub unsafe fn setLength1(
    &mut self,
    x: SkScalar,
    y: SkScalar,
    length: SkScalar
) -> bool
[src]

pub unsafe fn scale(&self, scale: SkScalar, dst: *mut SkPoint)[src]

pub unsafe fn scale1(&mut self, value: SkScalar)[src]

pub unsafe fn negate(&mut self)[src]

pub unsafe fn isFinite(&self) -> bool[src]

pub unsafe fn equals(&self, x: SkScalar, y: SkScalar) -> bool[src]

pub unsafe fn Length(x: SkScalar, y: SkScalar) -> SkScalar[src]

pub unsafe fn Normalize(vec: *mut SkVector) -> SkScalar[src]

pub unsafe fn Distance(a: *const SkPoint, b: *const SkPoint) -> SkScalar[src]

pub unsafe fn DotProduct(a: *const SkVector, b: *const SkVector) -> SkScalar[src]

pub unsafe fn CrossProduct(a: *const SkVector, b: *const SkVector) -> SkScalar[src]

pub unsafe fn cross(&self, vec: *const SkVector) -> SkScalar[src]

pub unsafe fn dot(&self, vec: *const SkVector) -> SkScalar[src]

Trait Implementations

impl Clone for SkPoint[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for SkPoint[src]

impl Debug for SkPoint[src]

Auto Trait Implementations

impl Sync for SkPoint

impl Send for SkPoint

impl Unpin for SkPoint

impl RefUnwindSafe for SkPoint

impl UnwindSafe for SkPoint

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<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]