pub struct SPSurrogate {
pub poles: Vec<Circle>,
pub piers: Vec<Edge>,
pub convex_hull_indices: Vec<usize>,
pub convex_hull_area: f32,
pub config: SPSurrogateConfig,
}
Expand description
Fields§
§poles: Vec<Circle>
Set of poles
piers: Vec<Edge>
Set of piers
convex_hull_indices: Vec<usize>
Indices of the vertices in the SPolygon
that form the convex hull
convex_hull_area: f32
The area of the convex hull of the SPolygon
.
config: SPSurrogateConfig
The configuration used to generate the surrogate
Implementations§
Source§impl SPSurrogate
impl SPSurrogate
Trait Implementations§
Source§impl Clone for SPSurrogate
impl Clone for SPSurrogate
Source§fn clone(&self) -> SPSurrogate
fn clone(&self) -> SPSurrogate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SPSurrogate
impl Debug for SPSurrogate
Source§impl Transformable for SPSurrogate
impl Transformable for SPSurrogate
Source§fn transform(&mut self, t: &Transformation) -> &mut Self
fn transform(&mut self, t: &Transformation) -> &mut Self
Applies a transformation to
self
.Source§fn transform_clone(&self, t: &Transformation) -> Self
fn transform_clone(&self, t: &Transformation) -> Self
Applies a transformation to a clone.
Source§impl TransformableFrom for SPSurrogate
impl TransformableFrom for SPSurrogate
Source§fn transform_from(&mut self, reference: &Self, t: &Transformation) -> &mut Self
fn transform_from(&mut self, reference: &Self, t: &Transformation) -> &mut Self
Applies a transformation on the reference object and stores the result in
self
.Auto Trait Implementations§
impl Freeze for SPSurrogate
impl RefUnwindSafe for SPSurrogate
impl Send for SPSurrogate
impl Sync for SPSurrogate
impl Unpin for SPSurrogate
impl UnwindSafe for SPSurrogate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more