pub struct WeightedPoint {
pub point: Point,
pub weight: f64,
}Expand description
A weighted site for power diagram construction.
The weight field acts as the squared radius of an influence circle centred
at point. A larger weight enlarges the power cell of that site.
Fields§
§point: PointThe geometric location of the site.
weight: f64Power weight (equivalent to squared circle radius). Use 0.0 for unweighted sites — the result is then a standard Voronoi cell.
Implementations§
Trait Implementations§
Source§impl Clone for WeightedPoint
impl Clone for WeightedPoint
Source§fn clone(&self) -> WeightedPoint
fn clone(&self) -> WeightedPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeightedPoint
impl RefUnwindSafe for WeightedPoint
impl Send for WeightedPoint
impl Sync for WeightedPoint
impl Unpin for WeightedPoint
impl UnsafeUnpin for WeightedPoint
impl UnwindSafe for WeightedPoint
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