pub fn cast<NewT: NumCast + Copy>(&self) -> Option<TypedPoint4D<NewT, U>> {
        match (NumCast::from(self.x),
               NumCast::from(self.y),
               NumCast::from(self.z),
               NumCast::from(self.w)) {
            (Some(x), Some(y), Some(z), Some(w)) => Some(TypedPoint4D::new(x, y, z, w)),
            _ => None
        }
    }
/// Cast from one numeric representation to another, preserving the units.
///
/// When casting from floating point to integer coordinates, the decimals are truncated
/// as one would expect from a simple cast, but this behavior does not always make sense
/// geometrically. Consider using round(), ceil or floor() before casting.
Cast from one numeric representation to another, preserving the units.
When casting from floating point to integer coordinates, the decimals are truncated
as one would expect from a simple cast, but this behavior does not always make sense
geometrically. Consider using round(), ceil or floor() before casting.
Cast from one numeric representation to another preserving the units . When casting from floating point to integer coordinates the decimals are truncated as one would expect from a simple cast but this behavior does not always make sense geometrically . Consider using round () ceil or floor () before casting .
pub fn cast<NewT: NumCast + Copy>(&self) -> Option<TypedPoint4D<NewT, U>> {
        match (NumCast::from(self.x),
               NumCast::from(self.y),
               NumCast::from(self.z),
               NumCast::from(self.w)) {
            (Some(x), Some(y), Some(z), Some(w)) => Some(TypedPoint4D::new(x, y, z, w)),
            _ => None
        }
    }
pub fn cast < NewT : NumCast + Copy > ( & self ) -> Option < TypedPoint4D < NewT , U > > { match ( NumCast :: from ( self . x ) , NumCast :: from ( self . y ) , NumCast :: from ( self . z ) , NumCast :: from ( self . w ) ) { ( Some ( x ) , Some ( y ) , Some ( z ) , Some ( w ) ) => Some ( TypedPoint4D :: new ( x , y , z , w ) ) , _ => None } }
Cast from one numeric representation to another, preserving the units.
Cast from one numeric representation to another preserving the units .
&self
&self