pub struct PowerCell {
pub node_id: String,
pub site: KleinPoint,
pub half_planes: Vec<HalfPlane>,
}Expand description
A power cell — the Voronoi region of a single node in the Klein model.
Cell(i) = ∩_{j ∈ tree_neighbors(i)} { q : pd(q,i) ≤ pd(q,j) } By the Delaunay=Tree theorem, neighbors are exactly the tree neighbors.
Fields§
§node_id: StringUnique ID of the node owning this cell
site: KleinPointThe site (Klein point) at the center of this cell
half_planes: Vec<HalfPlane>Half-plane constraints, one per tree neighbor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PowerCell
impl RefUnwindSafe for PowerCell
impl Send for PowerCell
impl Sync for PowerCell
impl Unpin for PowerCell
impl UnsafeUnpin for PowerCell
impl UnwindSafe for PowerCell
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