Enum quicksilver::geom::Shape [] [src]

pub enum Shape {
    Circ(Circle),
    Line(Line),
    Rect(Rectangle),
    Vect(Vector),
}

A universal shape union

Variants

Methods

impl Shape
[src]

[src]

Check if the shape overlaps with a circle

[src]

Check if the shape overlaps with a rectangle

[src]

Check if the shape intersects with a line

[src]

Check if the shape contains a vector

[src]

Check if the shape overlaps with another shape

[src]

Create a shape moved by a given amount

[src]

Create a copy of the shape with a given center

[src]

Find the smallest bounding box that contains the shape

[src]

Find the center of the shape

Trait Implementations

impl Clone for Shape
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Shape
[src]

impl Debug for Shape
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Shape
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Shape
[src]