Enum geo_aid::generator::expression::PointExpr
source · pub enum PointExpr {
Free(FreePoint),
OnCircle(PointOnCircle),
OnLine(PointOnLine),
Average(Average<PointExpr>),
LineLineIntersection(LineLineIntersection),
CircleCenter(CircleCenter),
}Expand description
Defines a point expression.
Variants§
Free(FreePoint)
An adjustable indexed point in euclidean space
OnCircle(PointOnCircle)
A point on a circle.
OnLine(PointOnLine)
A point on a line.
Average(Average<PointExpr>)
Takes the average value (arithmetic mean)
LineLineIntersection(LineLineIntersection)
The point where two lines cross.
CircleCenter(CircleCenter)
The centre of a circle.
Trait Implementations§
source§impl Kind for PointExpr
impl Kind for PointExpr
fn collect(&self, exprs: &mut Vec<usize>)
source§fn is_trivial(&self) -> bool
fn is_trivial(&self) -> bool
Trivial expressions are ones that don’t require any calculations being made.
Trivial expressions should not be cached, as it is much faster to evaluate them
than to get their caches.
source§fn evaluate_weights(&self) -> Weights
fn evaluate_weights(&self) -> Weights
Evaluates weights.
Auto Trait Implementations§
impl RefUnwindSafe for PointExpr
impl Send for PointExpr
impl Sync for PointExpr
impl Unpin for PointExpr
impl UnwindSafe for PointExpr
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