[−][src]Struct quicksilver::geom::Circle
A circle with a center and a radius
Fields
pos: Vector
The position of the center of the circle
radius: f32
The radius of the circle
Implementations
impl Circle
[src]
Trait Implementations
impl Clone for Circle
[src]
impl Copy for Circle
[src]
impl Debug for Circle
[src]
impl Default for Circle
[src]
impl Eq for Circle
[src]
impl PartialEq<Circle> for Circle
[src]
impl Shape for Circle
[src]
fn contains(&self, v: Vector) -> bool
[src]
fn overlaps_circle(&self, c: &Circle) -> bool
[src]
fn overlaps(&self, shape: &impl Shape) -> bool
[src]
fn center(&self) -> Vector
[src]
fn bounding_box(&self) -> Rectangle
[src]
fn translate(&self, v: Vector) -> Self
[src]
#[must_use]fn intersects(&self, line: &Line) -> bool
[src]
#[must_use]fn overlaps_rectangle(&self, rectangle: &Rectangle) -> bool
[src]
#[must_use]fn transformed_bounding_box(&self, transform: Transform) -> Rectangle
[src]
#[must_use]fn constrain(&self, outer: &Rectangle) -> Self where
Self: Sized,
[src]
Self: Sized,
#[must_use]fn with_center(&self, center: Vector) -> Self where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,