Integrate engine into application prototype #15
@ -11,11 +11,13 @@ use crate::engine::{realize_gram, PartialMatrix};
|
|||||||
pub type ElementKey = usize;
|
pub type ElementKey = usize;
|
||||||
pub type ConstraintKey = usize;
|
pub type ConstraintKey = usize;
|
||||||
|
|
||||||
|
pub type ElementColor = [f32; 3];
|
||||||
|
|
||||||
#[derive(Clone, PartialEq)]
|
#[derive(Clone, PartialEq)]
|
||||||
pub struct Element {
|
pub struct Element {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub label: String,
|
pub label: String,
|
||||||
pub color: [f32; 3],
|
pub color: ElementColor,
|
||||||
pub representation: DVector<f64>,
|
pub representation: DVector<f64>,
|
||||||
pub constraints: BTreeSet<ConstraintKey>,
|
pub constraints: BTreeSet<ConstraintKey>,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user