[−][src]Struct c2::Circle
A circle with a point and a radius
Implementations
impl Circle
[src]
pub fn new<V: Into<Vec2>>(position: V, radius: f32) -> Circle
[src]
Creates a circle from a position and a radius
Trait Implementations
impl AdvancedShape for Circle
[src]
fn gjk<'a, T: Shape>(&'a self, other: &'a T) -> GjkRunner<'a, Self, T> where
Self: Sized,
T: Sized,
[src]
Self: Sized,
T: Sized,
fn time_of_impact<'a, T: Shape>(
&'a self,
other: &'a T
) -> ToiRunner<'a, Self, T> where
Self: Sized,
T: Sized,
[src]
&'a self,
other: &'a T
) -> ToiRunner<'a, Self, T> where
Self: Sized,
T: Sized,
impl BasicShape for Circle
[src]
fn collides_with<T: Shape>(&self, other: &T) -> bool
[src]
fn manifold<T: Shape>(&self, other: &T) -> Manifold
[src]
impl Clone for Circle
[src]
impl Copy for Circle
[src]
impl Debug for Circle
[src]
impl Shape for Circle
[src]
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>,