Struct vek::geom::repr_c::Disk [] [src]

pub struct Disk<P, E> {
    pub center: Vec2<P>,
    pub radius: E,
}

Disk (2D), represented by center and radius.

Fields

Methods

impl<P, E> Disk<P, E>
[src]

[src]

Gets this disk's circumference.

[src]

Gets this disk's area.

impl<P, E> Disk<P, E>
[src]

[src]

Creates a new from center and radius.

[src]

Creates a new from center and a radius equal to one.

[src]

Creates a new from center and a radius equal to zero.

[src]

Gets the value of twice the radius.

[src]

Gets the bounding rectangle for this shape.

impl<T> Disk<T, T> where
    T: Copy + Add<T, Output = T> + Sub<T, Output = T>, 
[src]

[src]

Gets this shape's bounds.

impl<T: Float + Sum> Disk<T, T>
[src]

[src]

Does this shape contain the given point ?

[src]

Does this shape collide with another ?

[src]

Gets a vector that tells how much this shape penetrates another.

Trait Implementations

impl<P: Debug, E: Debug> Debug for Disk<P, E>
[src]

[src]

Formats the value using the given formatter.

impl<P: Default, E: Default> Default for Disk<P, E>
[src]

[src]

Returns the "default value" for a type. Read more

impl<P: Clone, E: Clone> Clone for Disk<P, E>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<P: Copy, E: Copy> Copy for Disk<P, E>
[src]

impl<P: Hash, E: Hash> Hash for Disk<P, E>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<P: Eq, E: Eq> Eq for Disk<P, E>
[src]

impl<P: PartialEq, E: PartialEq> PartialEq for Disk<P, E>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.