pub struct Center<K: Scalar = f64> {
pub t: K,
pub x: K,
pub y: K,
}Expand description
A center of some transformation in ℍ²: a point, ideal point, or line.
Fields§
§t: K§x: K§y: KImplementations§
Source§impl<K: Scalar> Center<K>
impl<K: Scalar> Center<K>
Sourcepub fn classify(self) -> CenterKind<K>
pub fn classify(self) -> CenterKind<K>
Determine the kind of center.
In the case an operation gives a generic center object where you expect otherwise, see that individual operation for specific interpretations of each result. e.g. the intersection of two ultraparallel lines gives their unique common perpendicular.
Trait Implementations§
Source§impl<K: Scalar> AddAssign for Center<K>
impl<K: Scalar> AddAssign for Center<K>
Source§fn add_assign(&mut self, other: Center<K>)
fn add_assign(&mut self, other: Center<K>)
Performs the
+= operation. Read moreSource§impl<K: Scalar> AddAssign<IdealPoint<K>> for Center<K>
impl<K: Scalar> AddAssign<IdealPoint<K>> for Center<K>
Source§fn add_assign(&mut self, other: IdealPoint<K>)
fn add_assign(&mut self, other: IdealPoint<K>)
Performs the
+= operation. Read moreSource§impl<K: Scalar> AddAssign<Line<K>> for Center<K>
impl<K: Scalar> AddAssign<Line<K>> for Center<K>
Source§fn add_assign(&mut self, other: Line<K>)
fn add_assign(&mut self, other: Line<K>)
Performs the
+= operation. Read moreSource§impl<K: Scalar> AddAssign<Point<K>> for Center<K>
impl<K: Scalar> AddAssign<Point<K>> for Center<K>
Source§fn add_assign(&mut self, other: Point<K>)
fn add_assign(&mut self, other: Point<K>)
Performs the
+= operation. Read moreSource§impl<K: Scalar> AddAssign<WeightedLine<K>> for Center<K>
impl<K: Scalar> AddAssign<WeightedLine<K>> for Center<K>
Source§fn add_assign(&mut self, other: WeightedLine<K>)
fn add_assign(&mut self, other: WeightedLine<K>)
Performs the
+= operation. Read moreSource§impl<K: Scalar> AddAssign<WeightedPoint<K>> for Center<K>
impl<K: Scalar> AddAssign<WeightedPoint<K>> for Center<K>
Source§fn add_assign(&mut self, other: WeightedPoint<K>)
fn add_assign(&mut self, other: WeightedPoint<K>)
Performs the
+= operation. Read moreimpl<K: Copy + Scalar> Copy for Center<K>
Source§impl<K: Scalar> From<IdealPoint<K>> for Center<K>
impl<K: Scalar> From<IdealPoint<K>> for Center<K>
Source§fn from(value: IdealPoint<K>) -> Self
fn from(value: IdealPoint<K>) -> Self
Converts to this type from the input type.
Source§impl<K: Scalar> From<WeightedLine<K>> for Center<K>
impl<K: Scalar> From<WeightedLine<K>> for Center<K>
Source§fn from(value: WeightedLine<K>) -> Self
fn from(value: WeightedLine<K>) -> Self
Converts to this type from the input type.
Source§impl<K: Scalar> From<WeightedPoint<K>> for Center<K>
impl<K: Scalar> From<WeightedPoint<K>> for Center<K>
Source§fn from(value: WeightedPoint<K>) -> Self
fn from(value: WeightedPoint<K>) -> Self
Converts to this type from the input type.
Source§impl<K: Scalar> MulAssign<K> for Center<K>
impl<K: Scalar> MulAssign<K> for Center<K>
Source§fn mul_assign(&mut self, other: K)
fn mul_assign(&mut self, other: K)
Performs the
*= operation. Read moreSource§impl<K: Scalar> Multivector for Center<K>
impl<K: Scalar> Multivector for Center<K>
Source§const UNITIZED: bool = false
const UNITIZED: bool = false
Whether elements of this type are always unitized up to rounding.
i.e.
x.antidot(x) always approximately equals ±1.Source§fn from_all_components(components: [K; 8]) -> Self
fn from_all_components(components: [K; 8]) -> Self
Collect a value of
Self from the relevant components. Read moreSource§impl<K: Scalar> SubAssign for Center<K>
impl<K: Scalar> SubAssign for Center<K>
Source§fn sub_assign(&mut self, other: Center<K>)
fn sub_assign(&mut self, other: Center<K>)
Performs the
-= operation. Read moreSource§impl<K: Scalar> SubAssign<IdealPoint<K>> for Center<K>
impl<K: Scalar> SubAssign<IdealPoint<K>> for Center<K>
Source§fn sub_assign(&mut self, other: IdealPoint<K>)
fn sub_assign(&mut self, other: IdealPoint<K>)
Performs the
-= operation. Read moreSource§impl<K: Scalar> SubAssign<Line<K>> for Center<K>
impl<K: Scalar> SubAssign<Line<K>> for Center<K>
Source§fn sub_assign(&mut self, other: Line<K>)
fn sub_assign(&mut self, other: Line<K>)
Performs the
-= operation. Read moreSource§impl<K: Scalar> SubAssign<Point<K>> for Center<K>
impl<K: Scalar> SubAssign<Point<K>> for Center<K>
Source§fn sub_assign(&mut self, other: Point<K>)
fn sub_assign(&mut self, other: Point<K>)
Performs the
-= operation. Read moreSource§impl<K: Scalar> SubAssign<WeightedLine<K>> for Center<K>
impl<K: Scalar> SubAssign<WeightedLine<K>> for Center<K>
Source§fn sub_assign(&mut self, other: WeightedLine<K>)
fn sub_assign(&mut self, other: WeightedLine<K>)
Performs the
-= operation. Read moreSource§impl<K: Scalar> SubAssign<WeightedPoint<K>> for Center<K>
impl<K: Scalar> SubAssign<WeightedPoint<K>> for Center<K>
Source§fn sub_assign(&mut self, other: WeightedPoint<K>)
fn sub_assign(&mut self, other: WeightedPoint<K>)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl<K> Freeze for Center<K>where
K: Freeze,
impl<K> RefUnwindSafe for Center<K>where
K: RefUnwindSafe,
impl<K> Send for Center<K>where
K: Send,
impl<K> Sync for Center<K>where
K: Sync,
impl<K> Unpin for Center<K>where
K: Unpin,
impl<K> UnsafeUnpin for Center<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for Center<K>where
K: 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
Mutably borrows from an owned value. Read more