pub struct Circle {
pub center_x: f64,
pub center_y: f64,
pub radius: f64,
}
Fields§
§center_x: f64
§center_y: f64
§radius: f64
Implementations§
Source§impl Circle
impl Circle
pub fn new(other: &dyn CircleAccessor) -> Self
pub fn set_center(&mut self, center_x: f64, center_y: f64)
pub fn set_center_from_circle(&mut self, circle: &Circle)
pub fn set_center_from_point_2dd(&mut self, point_2dd: &Point2DD)
Trait Implementations§
Source§impl CircleAccessor for Circle
impl CircleAccessor for Circle
fn contains(&self, x: f64, y: f64) -> bool
fn get_center_point_2dd(&self) -> Point2DD
fn get_center_x(&self) -> f64
fn get_center_y(&self) -> f64
fn get_radius(&self) -> f64
fn intersects_circle(&self, other: &dyn CircleAccessor) -> bool
impl Copy for Circle
Auto Trait Implementations§
impl Freeze for Circle
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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