Struct euclid::point::TypedPoint3D [] [src]

pub struct TypedPoint3D<T, U> {
    pub x: T,
    pub y: T,
    pub z: T,
    // some fields omitted
}

Fields

x: T y: T z: T

Methods

impl<T: Zero, U> TypedPoint3D<T, U>
[src]

fn zero() -> TypedPoint3D<T, U>

impl<T, U> TypedPoint3D<T, U>
[src]

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

impl<T: Clone, U> TypedPoint3D<T, U>
[src]

fn from_lengths(x: Length<T, U>, y: Length<T, U>, z: Length<T, U>) -> TypedPoint3D<T, U>

impl<T: Clone, U> TypedPoint3D<T, U>
[src]

fn x_typed(&self) -> Length<T, U>

fn y_typed(&self) -> Length<T, U>

fn z_typed(&self) -> Length<T, U>

impl<T: Mul<T, Output=T> + Add<T, Output=T> + Sub<T, Output=T> + Copy, U> TypedPoint3D<T, U>
[src]

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

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

impl<T: Float, U> TypedPoint3D<T, U>
[src]

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

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

impl<T: Clone, U> TypedPoint3D<T, U>
[src]

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

Drop the units, preserving only the numeric value.

fn from_untyped(p: &Point3D<T>) -> TypedPoint3D<T, U>

Tag a unitless value with units.

Trait Implementations

impl<T: Encodable, U: Encodable> Encodable for TypedPoint3D<T, U>
[src]

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

impl<T: Decodable, U: Decodable> Decodable for TypedPoint3D<T, U>
[src]

fn decode<__DTU: Decoder>(__arg_0: &mut __DTU) -> Result<TypedPoint3D<T, U>, __DTU::Error>

impl<T: HeapSizeOf, U> HeapSizeOf for TypedPoint3D<T, U>
[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, U> Deserialize for TypedPoint3D<T, U>
[src]

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

Deserialize this value given this Deserializer.

impl<T: Serialize, U> Serialize for TypedPoint3D<T, U>
[src]

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

Serializes this value into this serializer.

impl<T: Hash, U> Hash for TypedPoint3D<T, U>
[src]

fn hash<H: Hasher>(&self, h: &mut H)

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: Copy, U> Copy for TypedPoint3D<T, U>
[src]

impl<T: Clone, U> Clone for TypedPoint3D<T, U>
[src]

fn clone(&self) -> TypedPoint3D<T, U>

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: PartialEq, U> PartialEq<TypedPoint3D<T, U>> for TypedPoint3D<T, U>
[src]

fn eq(&self, other: &TypedPoint3D<T, U>) -> bool

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<T: Eq, U> Eq for TypedPoint3D<T, U>
[src]

impl<T: Debug, U> Debug for TypedPoint3D<T, U>
[src]

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

Formats the value using the given formatter.

impl<T: Display, U> Display for TypedPoint3D<T, U>
[src]

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

Formats the value using the given formatter.

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

type Output = TypedPoint3D<T, U>

The resulting type after applying the + operator

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

The method for the + operator

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

type Output = TypedPoint3D<T, U>

The resulting type after applying the - operator

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

The method for the - operator

impl<T: Clone + Neg<Output=T>, U> Neg for TypedPoint3D<T, U>
[src]

type Output = TypedPoint3D<T, U>

The resulting type after applying the - operator

fn neg(self) -> TypedPoint3D<T, U>

The method for the unary - operator