[−][src]Struct opencv::core::Point_
Fields
x: T
y: T
Implementations
impl<T: ValidPointType> Point_<T>
[src]
pub fn new(x: T, y: T) -> Self
[src]
pub fn from_vec2(vec: Vec2<T>) -> Self where
T: ValidVecType,
[src]
T: ValidVecType,
pub fn from_size(sz: Size_<T>) -> Self where
T: ValidSizeType,
[src]
T: ValidSizeType,
pub fn cross(self, pt: Point_<T>) -> f64 where
f64: From<T>,
[src]
f64: From<T>,
pub fn dot(self, pt: Point_<T>) -> T
[src]
pub fn ddot(self, pt: Point_<T>) -> f64 where
f64: From<T>,
[src]
f64: From<T>,
pub fn inside(self, rect: Rect_<T>) -> bool where
T: ValidRectType,
[src]
T: ValidRectType,
pub fn norm(self) -> f64 where
f64: From<T>,
[src]
f64: From<T>,
pub fn to<D: ValidPointType + NumCast>(self) -> Option<Point_<D>> where
T: ToPrimitive,
[src]
T: ToPrimitive,
pub fn to_vec2(&self) -> Vec2<T> where
T: ValidVecType,
[src]
T: ValidVecType,
Trait Implementations
impl<P, R> Add<Point_<P>> for Rect_<R> where
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
[src]
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
type Output = Rect_<R>
The resulting type after applying the +
operator.
fn add(mut self: Self, rhs: Point_<P>) -> Self::Output
[src]
impl<T> Add<Point_<T>> for Point_<T> where
T: ValidPointType + AddAssign,
[src]
T: ValidPointType + AddAssign,
type Output = Point_<T>
The resulting type after applying the +
operator.
fn add(mut self: Self, rhs: Point_<T>) -> Self::Output
[src]
impl<P, R> AddAssign<Point_<P>> for Rect_<R> where
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
[src]
P: ValidPointType,
R: ValidRectType + AddAssign<P>,
fn add_assign(&mut self, rhs: Point_<P>)
[src]
impl<T> AddAssign<Point_<T>> for Point_<T> where
T: ValidPointType + AddAssign,
[src]
T: ValidPointType + AddAssign,
fn add_assign(&mut self, rhs: Point_<T>)
[src]
impl<T: Clone + ValidPointType> Clone for Point_<T>
[src]
impl<T: Copy + ValidPointType> Copy for Point_<T>
[src]
impl<T: Debug + ValidPointType> Debug for Point_<T>
[src]
impl<T: Default + ValidPointType> Default for Point_<T>
[src]
impl<T> Div<T> for Point_<T> where
T: ValidPointType + DivAssign,
[src]
T: ValidPointType + DivAssign,
type Output = Point_<T>
The resulting type after applying the /
operator.
fn div(mut self: Self, rhs: T) -> Self::Output
[src]
impl<T> DivAssign<T> for Point_<T> where
T: ValidPointType + DivAssign,
[src]
T: ValidPointType + DivAssign,
fn div_assign(&mut self, rhs: T)
[src]
impl<T> Mul<T> for Point_<T> where
T: ValidPointType + MulAssign,
[src]
T: ValidPointType + MulAssign,
type Output = Point_<T>
The resulting type after applying the *
operator.
fn mul(mut self: Self, rhs: T) -> Self::Output
[src]
impl<T> MulAssign<T> for Point_<T> where
T: ValidPointType + MulAssign,
[src]
T: ValidPointType + MulAssign,
fn mul_assign(&mut self, rhs: T)
[src]
impl<T: PartialEq + ValidPointType> PartialEq<Point_<T>> for Point_<T>
[src]
impl<T: PartialOrd + ValidPointType> PartialOrd<Point_<T>> for Point_<T>
[src]
fn partial_cmp(&self, other: &Point_<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Point_<T>) -> bool
[src]
fn le(&self, other: &Point_<T>) -> bool
[src]
fn gt(&self, other: &Point_<T>) -> bool
[src]
fn ge(&self, other: &Point_<T>) -> bool
[src]
impl<T: ValidPointType> StructuralPartialEq for Point_<T>
[src]
impl<P, R> Sub<Point_<P>> for Rect_<R> where
P: ValidPointType,
R: ValidRectType + SubAssign<P>,
[src]
P: ValidPointType,
R: ValidRectType + SubAssign<P>,
type Output = Rect_<R>
The resulting type after applying the -
operator.
fn sub(mut self: Self, rhs: Point_<P>) -> Self::Output
[src]
impl<T> Sub<Point_<T>> for Point_<T> where
T: ValidPointType + SubAssign,
[src]
T: ValidPointType + SubAssign,
type Output = Point_<T>
The resulting type after applying the -
operator.
fn sub(mut self: Self, rhs: Point_<T>) -> Self::Output
[src]
impl<P, R> SubAssign<Point_<P>> for Rect_<R> where
P: ValidPointType,
R: ValidRectType + SubAssign<P>,
[src]
P: ValidPointType,
R: ValidRectType + SubAssign<P>,
fn sub_assign(&mut self, rhs: Point_<P>)
[src]
impl<T> SubAssign<Point_<T>> for Point_<T> where
T: ValidPointType + SubAssign,
[src]
T: ValidPointType + SubAssign,
fn sub_assign(&mut self, rhs: Point_<T>)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Point_<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Point_<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Point_<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Point_<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Point_<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,