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 for GridCircle
impl PartialEq 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 ==
.impl Copy for GridCircle
impl Eq for GridCircle
impl StructuralPartialEq for GridCircle
Auto Trait Implementations§
impl Freeze for GridCircle
impl RefUnwindSafe for GridCircle
impl Send for GridCircle
impl Sync for GridCircle
impl Unpin for GridCircle
impl UnwindSafe for GridCircle
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