Enum geo_aid::generator::expression::LineExpr
source · pub enum LineExpr {
Line(LinePoint),
AngleBisector(AngleBisector),
PerpendicularThrough(PerpendicularThrough),
ParallelThrough(ParallelThrough),
}
Expand description
Defines a line expression.
Variants§
Line(LinePoint)
A line in euclidean space. defined by two points.
AngleBisector(AngleBisector)
An angle bisector.
PerpendicularThrough(PerpendicularThrough)
Generates a line perpendicular to $1 going through $2
ParallelThrough(ParallelThrough)
Generates a line parallel to $1 going through $2
Trait Implementations§
source§impl Kind for LineExpr
impl Kind for LineExpr
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 LineExpr
impl Send for LineExpr
impl Sync for LineExpr
impl Unpin for LineExpr
impl UnwindSafe for LineExpr
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
source§impl<T> CloneWithNode for Twhere
T: Clone,
impl<T> CloneWithNode for Twhere
T: Clone,
fn clone_with_node(&mut self) -> T
fn clone_without_node(&self) -> T
source§impl<T> Convert for T
impl<T> Convert for T
source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Errors Read more
source§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Errors Read more