pub fn perpendicular(self) -> Point {
        if self.x.abs() <= self.y.abs() && self.x.abs() <= self.z.abs() {
            return Point::new(0.0, -self.z, self.y).normalized();
        } else if self.y.abs() <= self.x.abs() && self.y.abs() <= self.z.abs() {
            return Point::new(-self.z, 0.0, self.x).normalized();
        }
        Point::new(-self.y, self.x, 0.0).normalized()
    }
/// Returns a Point that is perpendicular to the current one
///
/// Constructed by zeroing the smallest component and swapping the remaining two components,
/// normalizing afterwards.
Returns a Point that is perpendicular to the current one
Constructed by zeroing the smallest component and swapping the remaining two components,
normalizing afterwards.
Returns a Point that is perpendicular to the current one Constructed by zeroing the smallest component and swapping the remaining two components normalizing afterwards .
pub fn perpendicular(self) -> Point {
        if self.x.abs() <= self.y.abs() && self.x.abs() <= self.z.abs() {
            return Point::new(0.0, -self.z, self.y).normalized();
        } else if self.y.abs() <= self.x.abs() && self.y.abs() <= self.z.abs() {
            return Point::new(-self.z, 0.0, self.x).normalized();
        }
        Point::new(-self.y, self.x, 0.0).normalized()
    }
pub fn perpendicular ( self ) -> Point { if self . x . abs ( ) <= self . y . abs ( ) && self . x . abs ( ) <= self . z . abs ( ) { return Point :: new ( 0.0 , - self . z , self . y ) . normalized ( ) ; } else if self . y . abs ( ) <= self . x . abs ( ) && self . y . abs ( ) <= self . z . abs ( ) { return Point :: new ( - self . z , 0.0 , self . x ) . normalized ( ) ; } Point :: new ( - self . y , self . x , 0.0 ) . normalized ( ) }
Returns a Point that is perpendicular to the current one
Constructed by zeroing the smallest component and swapping the remaining two components,
normalizing afterwards.
Returns a Point that is perpendicular to the current one Constructed by zeroing the smallest component and swapping the remaining two components normalizing afterwards .
self
self