Struct sark_grids::geometry::GridCircle
source · pub struct GridCircle {
pub center: IVec2,
pub radius: usize,
}
Expand description
A filled circle. Points within the circle can be iterator over.
Fields§
§center: IVec2
§radius: usize
Implementations§
source§impl GridCircle
impl GridCircle
Trait Implementations§
source§impl Clone for GridCircle
impl Clone for GridCircle
source§fn clone(&self) -> GridCircle
fn clone(&self) -> GridCircle
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 GridCircle
impl Debug for GridCircle
source§impl Default for GridCircle
impl Default for GridCircle
source§fn default() -> GridCircle
fn default() -> GridCircle
Returns the “default value” for a type. Read more
source§impl GridShape for GridCircle
impl GridShape for GridCircle
source§impl IntoIterator for GridCircle
impl IntoIterator for GridCircle
source§impl PartialEq<GridCircle> for GridCircle
impl PartialEq<GridCircle> for GridCircle
source§fn eq(&self, other: &GridCircle) -> bool
fn eq(&self, other: &GridCircle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.