#[repr(C)]pub struct Point3_<T> {
pub x: T,
pub y: T,
pub z: T,
}
Expand description
Fields§
§x: T
§y: T
§z: T
Implementations§
source§impl<T> Point3_<T>
impl<T> Point3_<T>
pub const fn new(x: T, y: T, z: T) -> Self
pub fn from_vec3(vec: VecN<T, 3>) -> Self
pub fn from_point(pt: Point_<T>) -> Selfwhere T: Zero,
pub fn cross(self, pt: Self) -> Selfwhere T: NumOps + Copy,
pub fn dot(self, pt: Self) -> Twhere T: NumOps,
pub fn ddot(self, pt: Self) -> f64where f64: From<T>,
pub fn norm(self) -> f64where f64: From<T>,
pub fn to<D: NumCast>(self) -> Option<Point3_<D>>where T: ToPrimitive,
pub fn to_vec3(self) -> VecN<T, 3>
Trait Implementations§
source§impl<T: AddAssign> AddAssign<Point3_<T>> for Point3_<T>
impl<T: AddAssign> AddAssign<Point3_<T>> for Point3_<T>
source§fn add_assign(&mut self, rhs: Point3_<T>)
fn add_assign(&mut self, rhs: Point3_<T>)
Performs the
+=
operation. Read moresource§impl<T: DataType> DataType for Point3_<T>
impl<T: DataType> DataType for Point3_<T>
source§fn opencv_depth() -> i32
fn opencv_depth() -> i32
The shape of bytes occupied by the single layer/channel of the element. E.g. for an 8-bit BGR
image it’s
CV_8U
because a single channel for a pixel is unsigned 8 bits. You should use one
of the depth constants for this like CV_8U
, CV_8S
, CV_32F
, etc.source§fn opencv_channels() -> i32
fn opencv_channels() -> i32
Amount of layers/channels per element. E.g. for an 8-bit BGR image it’s 3 because one pixel
consists of 3 channels: B, G and R.
source§fn opencv_type() -> i32
fn opencv_type() -> i32
OpenCV value for this type as produced by
CV_MAKETYPE()
functionsource§impl<T: DivAssign + Copy> DivAssign<T> for Point3_<T>
impl<T: DivAssign + Copy> DivAssign<T> for Point3_<T>
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T: MulAssign + Copy> MulAssign<T> for Point3_<T>
impl<T: MulAssign + Copy> MulAssign<T> for Point3_<T>
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T: PartialEq> PartialEq<Point3_<T>> for Point3_<T>
impl<T: PartialEq> PartialEq<Point3_<T>> for Point3_<T>
source§impl<T: PartialOrd> PartialOrd<Point3_<T>> for Point3_<T>
impl<T: PartialOrd> PartialOrd<Point3_<T>> for Point3_<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T: SubAssign> SubAssign<Point3_<T>> for Point3_<T>
impl<T: SubAssign> SubAssign<Point3_<T>> for Point3_<T>
source§fn sub_assign(&mut self, rhs: Point3_<T>)
fn sub_assign(&mut self, rhs: Point3_<T>)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for Point3_<T>
impl<T: Eq> Eq for Point3_<T>
impl<T> StructuralEq for Point3_<T>
impl<T> StructuralPartialEq for Point3_<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Point3_<T>where T: RefUnwindSafe,
impl<T> Send for Point3_<T>where T: Send,
impl<T> Sync for Point3_<T>where T: Sync,
impl<T> Unpin for Point3_<T>where T: Unpin,
impl<T> UnwindSafe for Point3_<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more