[][src]Struct opencv::core::Point_

#[repr(C)]
pub struct Point_<T: ValidPointType> {
    pub x: T,
    pub y: T,
}

Fields

x: Ty: T

Methods

impl<T: ValidPointType> Point_<T>[src]

pub fn new(x: T, y: T) -> Self[src]

pub fn from_size(sz: Size_<T>) -> Self where
    T: ValidSizeType
[src]

pub fn cross(self, pt: Point_<T>) -> f64 where
    f64: From<T>, 
[src]

pub fn dot(self, pt: Point_<T>) -> T[src]

pub fn ddot(self, pt: Point_<T>) -> f64 where
    f64: From<T>, 
[src]

pub fn inside(self, rect: Rect_<T>) -> bool where
    T: ValidRectType
[src]

pub fn norm(self) -> f64 where
    f64: From<T>, 
[src]

pub fn to<D: ValidPointType + NumCast>(self) -> Option<Point_<D>> where
    T: ToPrimitive
[src]

Trait Implementations

impl<T: Clone + ValidPointType> Clone for Point_<T>[src]

impl<T: Copy + ValidPointType> Copy for Point_<T>[src]

impl<T: Default + ValidPointType> Default for Point_<T>[src]

impl<T: PartialEq + ValidPointType> PartialEq<Point_<T>> for Point_<T>[src]

impl<T: PartialOrd + ValidPointType> PartialOrd<Point_<T>> for Point_<T>[src]

impl<T: Debug + ValidPointType> Debug for Point_<T>[src]

impl<T> Div<T> for Point_<T> where
    T: ValidPointType + DivAssign
[src]

type Output = Point_<T>

The resulting type after applying the / operator.

impl<T> Sub<Point_<T>> for Point_<T> where
    T: ValidPointType + SubAssign
[src]

type Output = Point_<T>

The resulting type after applying the - operator.

impl<P, R> Sub<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + SubAssign<P>, 
[src]

type Output = Rect_<R>

The resulting type after applying the - operator.

impl<T> Add<Point_<T>> for Point_<T> where
    T: ValidPointType + AddAssign
[src]

type Output = Point_<T>

The resulting type after applying the + operator.

impl<P, R> Add<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + AddAssign<P>, 
[src]

type Output = Rect_<R>

The resulting type after applying the + operator.

impl<T> Mul<T> for Point_<T> where
    T: ValidPointType + MulAssign
[src]

type Output = Point_<T>

The resulting type after applying the * operator.

impl<T> AddAssign<Point_<T>> for Point_<T> where
    T: ValidPointType + AddAssign
[src]

impl<P, R> AddAssign<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + AddAssign<P>, 
[src]

impl<T> SubAssign<Point_<T>> for Point_<T> where
    T: ValidPointType + SubAssign
[src]

impl<P, R> SubAssign<Point_<P>> for Rect_<R> where
    P: ValidPointType,
    R: ValidRectType + SubAssign<P>, 
[src]

impl<T> MulAssign<T> for Point_<T> where
    T: ValidPointType + MulAssign
[src]

impl<T> DivAssign<T> for Point_<T> where
    T: ValidPointType + DivAssign
[src]

impl<T: ValidPointType> StructuralPartialEq for Point_<T>[src]

Auto Trait Implementations

impl<T> Send for Point_<T> where
    T: Send

impl<T> Sync for Point_<T> where
    T: Sync

impl<T> Unpin for Point_<T> where
    T: Unpin

impl<T> UnwindSafe for Point_<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Point_<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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