[][src]Struct collision::primitive::Circle

pub struct Circle<S> {
    pub radius: S,
}

Circle primitive

Fields

radius: S

Radius of the circle

Methods

impl<S> Circle<S>[src]

pub fn new(radius: S) -> Self[src]

Create a new circle primitive

Trait Implementations

impl<S> Continuous<Ray<S, Point2<S>, Vector2<S>>> for Circle<S> where
    S: BaseFloat
[src]

type Result = Point2<S>

Result returned by the intersection test

impl<S> Discrete<Ray<S, Point2<S>, Vector2<S>>> for Circle<S> where
    S: BaseFloat
[src]

impl<S> ComputeBound<Aabb2<S>> for Circle<S> where
    S: BaseFloat
[src]

impl<S> Primitive for Circle<S> where
    S: BaseFloat
[src]

type Point = Point2<S>

Point type

impl<S: PartialEq> PartialEq<Circle<S>> for Circle<S>[src]

impl<S: Clone> Clone for Circle<S>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S> From<Circle<S>> for Primitive2<S>[src]

impl<S: Debug> Debug for Circle<S>[src]

Auto Trait Implementations

impl<S> Send for Circle<S> where
    S: Send

impl<S> Sync for Circle<S> where
    S: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.