Struct euclid::point::Point3D [] [src]

pub struct Point3D<T> {
    pub x: T,
    pub y: T,
    pub z: T,
}

Fields

x
y
z

Methods

impl<T: Zero> Point3D<T>

fn zero() -> Point3D<T>

impl<T> Point3D<T>

fn new(x: T, y: T, z: T) -> Point3D<T>

impl<T: Mul<T, Output=T> + Add<T, Output=T> + Sub<T, Output=T> + Copy> Point3D<T>

fn dot(self, other: Point3D<T>) -> T

fn cross(self, other: Point3D<T>) -> Point3D<T>

impl<T: Float> Point3D<T>

fn min(self, other: Point3D<T>) -> Point3D<T>

fn max(self, other: Point3D<T>) -> Point3D<T>

Trait Implementations

impl<T: Debug> Debug for Point3D<T>

fn fmt(&self, f: &mut Formatter) -> Result

impl<T: Display> Display for Point3D<T>

fn fmt(&self, formatter: &mut Formatter) -> Result

impl<T: Clone + Add<T, Output=T>> Add for Point3D<T>

type Output = Point3D<T>

fn add(self, other: Point3D<T>) -> Point3D<T>

impl<T: Clone + Sub<T, Output=T>> Sub for Point3D<T>

type Output = Point3D<T>

fn sub(self, other: Point3D<T>) -> Point3D<T>

impl<T: Clone + Neg<Output=T>> Neg for Point3D<T>

type Output = Point3D<T>

fn neg(self) -> Point3D<T>

Derived Implementations

impl<T: PartialEq> PartialEq for Point3D<T>

fn eq(&self, __arg_0: &Point3D<T>) -> bool

fn ne(&self, __arg_0: &Point3D<T>) -> bool

impl<T: Hash> Hash for Point3D<T>

fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<T: Eq> Eq for Point3D<T>

impl<T: Encodable> Encodable for Point3D<T>

fn encode<__ST: Encoder>(&self, __arg_0: &mut __ST) -> Result<(), __ST::Error>

impl<T: Decodable> Decodable for Point3D<T>

fn decode<__DT: Decoder>(__arg_0: &mut __DT) -> Result<Point3D<T>, __DT::Error>

impl<T: Copy> Copy for Point3D<T>

impl<T: Clone> Clone for Point3D<T>

fn clone(&self) -> Point3D<T>

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