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

pub enum Shape {
    Circle(Circle),
    Rectangle(Rectangle),
    Vector(Vector),
}

A universal shape union

Variants

Methods

impl Shape
[src]

Check if the shape overlaps with a circle

Check if the shape overlaps with a rectangle

Check if the shape contains a vector

Check if the shape overlaps with another shape

Create a shape moved by a given amount

Create a copy of the shape with a given center

Trait Implementations

impl Clone for Shape
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Shape
[src]

impl Debug for Shape
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Shape
[src]

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

This method tests for !=.

impl Eq for Shape
[src]

impl Positioned for Shape
[src]

Its center as a vector

The smallest possible rectangle that fully contains the shape

Auto Trait Implementations

impl Send for Shape

impl Sync for Shape