[−][src]Struct paddle::quicksilver_compat::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]
pub fn new(center: impl Into<Vector>, radius: impl Scalar) -> Circle
[src]
Create a circle with the center as a vector
Trait Implementations
impl Clone for Circle
[src]
impl Copy for Circle
[src]
impl Debug for Circle
[src]
impl Default for Circle
[src]
impl<'de> Deserialize<'de> for Circle
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Circle
[src]
impl PartialEq<Circle> for Circle
[src]
pub fn eq(&self, other: &Circle) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Circle
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Shape for Circle
[src]
pub fn contains(&self, v: impl Into<Vector>) -> bool
[src]
pub fn overlaps_circle(&self, c: &Circle) -> bool
[src]
pub fn overlaps(&self, shape: &impl Shape) -> bool
[src]
pub fn center(&self) -> Vector
[src]
pub fn bounding_box(&self) -> Rectangle
[src]
pub fn translate(&self, v: impl Into<Vector>) -> Self
[src]
#[must_use]pub fn intersects(&self, line: &Line) -> bool
[src]
#[must_use]pub fn overlaps_rectangle(&self, rectangle: &Rectangle) -> bool
[src]
#[must_use]pub fn transformed_bounding_box(&self, transform: Transform) -> Rectangle
[src]
#[must_use]pub fn constrain(&self, outer: &Rectangle) -> Self where
Self: Sized,
[src]
Self: Sized,
#[must_use]pub fn with_center(&self, center: impl Into<Vector>) -> Self where
Self: Sized,
[src]
Self: Sized,
impl Tessellate for Circle
[src]
pub fn tessellate<'a>(&self, mesh: &mut AbstractMesh, bkg: Background<'a>)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Circle
[src]
impl Send for Circle
[src]
impl Sync for Circle
[src]
impl Unpin for Circle
[src]
impl UnwindSafe for Circle
[src]
Blanket Implementations
impl<T> Activity for T where
T: Any,
[src]
T: Any,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,