Struct mgf::Rectangle [] [src]

pub struct Rectangle {
    pub c: Point3<f32>,
    pub u: [Vector3<f32>; 2],
    pub e: [f32; 2],
}

Rectangles are a center point, two directions and two half widths.

Fields

Trait Implementations

impl Collider<Contact, Moving<Component>> for Rectangle
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.

impl Copy for Rectangle
[src]

impl Clone for Rectangle
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Into<Plane> for Rectangle
[src]

[src]

Performs the conversion.

impl MinDistance<Point3<f32>> for Rectangle
[src]

[src]

Returns closest point on the rectangle to q

impl Add<Vector3<f32>> for Rectangle
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Vector3<f32>> for Rectangle
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl AddAssign<Vector3<f32>> for Rectangle
[src]

[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for Rectangle
[src]

[src]

Performs the -= operation.

impl Shape for Rectangle
[src]

[src]

Returns the center of mass of the geometry, assuming a regular density.

[src]

Sets the center of the shape to p.

impl Polygon for Rectangle
[src]

Type of the face object the polygon returns.

[src]

The number of edges available to query.

[src]

Returns the ith vertex as a Point.

[src]

The number of edges available to query.

[src]

Returns the ith edge of the polygon as a pair of indices.

[src]

impl Collider<Contains, Point3<f32>> for Rectangle
[src]

[src]

Returns the first collision found if any exists.

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

impl Collider<Intersection, Ray> for Rectangle
[src]

[src]

Collide with an object and call the callback for as many contacts there are. True is returned if any contact is found. Read more

[src]

Returns the first collision found if any exists.