Struct quicksilver::geom::Circle [] [src]

pub struct Circle {
    pub x: f32,
    pub y: f32,
    pub radius: f32,
}

A circle with a center and a radius

Fields

Methods

impl Circle
[src]

[src]

[src]

[src]

[src]

Get the center of a circle as a vector

[src]

Check to see if a circle contains a point

[src]

Check to see if a circle intersects a line

[src]

Check if a circle overlaps a rectangle

[src]

Check if two circles overlap

[src]

Translate a circle by a given vector

Trait Implementations

impl Clone for Circle
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Circle
[src]

impl Default for Circle
[src]

[src]

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

impl Debug for Circle
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Circle
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Circle
[src]