pub enum HyperbolicSector<T> {
Right,
Up,
Left,
Down,
Diagonal(T),
}Expand description
Represents the sector of the hyperbolic plane a perplex number is in.
The hyperbolic plane is divided into four sectors by the intersection of two diagonals,
where t = x and t = -x. This enum also includes the Diagonal variant to represent
light-like perplex numbers where the time and space components are equal in magnitude.
Variants§
Right
The sector where the time component is greater than the space component in absolute value.
Up
The sector where the space component is greater than the time component in absolute value.
Left
The mirror image of the Right sector, where the negative time component is greater in magnitude.
Down
The mirror image of the Up sector, where the negative space component is greater in magnitude.
Diagonal(T)
Represents a light-like perplex number on the diagonal where t and x are equal.
The value T encodes which diagonal line is used based on its sign.
Trait Implementations§
Source§impl<T: Clone> Clone for HyperbolicSector<T>
impl<T: Clone> Clone for HyperbolicSector<T>
Source§fn clone(&self) -> HyperbolicSector<T>
fn clone(&self) -> HyperbolicSector<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T: Debug> Debug for HyperbolicSector<T>
impl<T: Debug> Debug for HyperbolicSector<T>
Source§impl<T> Default for HyperbolicSector<T>
impl<T> Default for HyperbolicSector<T>
Source§fn default() -> HyperbolicSector<T>
fn default() -> HyperbolicSector<T>
Source§impl<T: Hash> Hash for HyperbolicSector<T>
impl<T: Hash> Hash for HyperbolicSector<T>
Source§impl<T: Ord> Ord for HyperbolicSector<T>
impl<T: Ord> Ord for HyperbolicSector<T>
Source§fn cmp(&self, other: &HyperbolicSector<T>) -> Ordering
fn cmp(&self, other: &HyperbolicSector<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<T: PartialEq> PartialEq for HyperbolicSector<T>
impl<T: PartialEq> PartialEq for HyperbolicSector<T>
Source§impl<T: PartialOrd> PartialOrd for HyperbolicSector<T>
impl<T: PartialOrd> PartialOrd for HyperbolicSector<T>
impl<T: Copy> Copy for HyperbolicSector<T>
impl<T: Eq> Eq for HyperbolicSector<T>
impl<T> StructuralPartialEq for HyperbolicSector<T>
Auto Trait Implementations§
impl<T> Freeze for HyperbolicSector<T>where
T: Freeze,
impl<T> RefUnwindSafe for HyperbolicSector<T>where
T: RefUnwindSafe,
impl<T> Send for HyperbolicSector<T>where
T: Send,
impl<T> Sync for HyperbolicSector<T>where
T: Sync,
impl<T> Unpin for HyperbolicSector<T>where
T: Unpin,
impl<T> UnwindSafe for HyperbolicSector<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.