pub struct Figure {
pub points: Vec<(Arc<Expression<PointExpr>>, MathString)>,
pub lines: Vec<(Arc<Expression<LineExpr>>, Style)>,
pub angles: Vec<(Arc<Expression<ScalarExpr>>, u8, Style)>,
pub segments: Vec<(Arc<Expression<PointExpr>>, Arc<Expression<PointExpr>>, Style)>,
pub rays: Vec<(Arc<Expression<PointExpr>>, Arc<Expression<PointExpr>>, Style)>,
pub circles: Vec<(Arc<Expression<CircleExpr>>, Style)>,
pub canvas_size: (usize, usize),
}
Expand description
Defines the visual data of the figure.
Fields§
§points: Vec<(Arc<Expression<PointExpr>>, MathString)>
Points to be displayed
lines: Vec<(Arc<Expression<LineExpr>>, Style)>
Lines to be displayed
angles: Vec<(Arc<Expression<ScalarExpr>>, u8, Style)>
Angles to be displayed
segments: Vec<(Arc<Expression<PointExpr>>, Arc<Expression<PointExpr>>, Style)>
Segments to be displayed
rays: Vec<(Arc<Expression<PointExpr>>, Arc<Expression<PointExpr>>, Style)>
Rays to be displayed
circles: Vec<(Arc<Expression<CircleExpr>>, Style)>
Circles to be displayed
canvas_size: (usize, usize)
The canvas size.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Figure
impl Send for Figure
impl Sync for Figure
impl Unpin for Figure
impl UnwindSafe for Figure
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> 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