Struct euclid::point::Point4D [] [src]

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

Fields

x: T y: T z: T w: T

Methods

impl<T: Zero> Point4D<T>
[src]

fn zero() -> Point4D<T>

impl<T> Point4D<T>
[src]

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

impl<T: Float> Point4D<T>
[src]

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

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

Trait Implementations

impl<T: Encodable> Encodable for Point4D<T>
[src]

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

impl<T: Decodable> Decodable for Point4D<T>
[src]

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

impl<T: PartialEq> PartialEq for Point4D<T>
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl<T: Hash> Hash for Point4D<T>
[src]

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

Feeds this value into the state given, updating the hasher as necessary.

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

Feeds a slice of this type into the state provided.

impl<T: Eq> Eq for Point4D<T>
[src]

impl<T: Copy> Copy for Point4D<T>
[src]

impl<T: Clone> Clone for Point4D<T>
[src]

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl<T: HeapSizeOf> HeapSizeOf for Point4D<T>
[src]

fn heap_size_of_children(&self) -> usize

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more

impl<T: Clone + Deserialize> Deserialize for Point4D<T>
[src]

fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> where D: Deserializer

Deserialize this value given this Deserializer.

impl<T: Serialize> Serialize for Point4D<T>
[src]

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.

impl<T: Debug> Debug for Point4D<T>
[src]

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

Formats the value using the given formatter.

impl<T: Display> Display for Point4D<T>
[src]

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

Formats the value using the given formatter.

impl<T: Clone + Add<T, Output=T>> Add for Point4D<T>
[src]

type Output = Point4D<T>

The resulting type after applying the + operator

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

The method for the + operator

impl<T: Clone + Sub<T, Output=T>> Sub for Point4D<T>
[src]

type Output = Point4D<T>

The resulting type after applying the - operator

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

The method for the - operator

impl<T: Clone + Neg<Output=T>> Neg for Point4D<T>
[src]

type Output = Point4D<T>

The resulting type after applying the - operator

fn neg(self) -> Point4D<T>

The method for the unary - operator