Struct mgf::Rectangle[][src]

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

A center point, two directions, and two half widths.

Fields

The center of the rectangle.

The directions of the rectangle. Must be normalized.

Half the lengths of each side of the rectangle.

Methods

impl Rectangle
[src]

Create a new rectangle.

Trait Implementations

impl BoundedBy<AABB> for Rectangle
[src]

impl BoundedBy<Sphere> for Rectangle
[src]

impl Contacts<Moving<Component>> for Rectangle
[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

Returns the last contact found, if one exists.

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

Returns true if the current object contains the argument.

impl Contacts<Rectangle> for Moving<Sphere>
[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

Returns the last contact found, if one exists.

impl Contacts<Rectangle> for Moving<Capsule>
[src]

Calls the closure for each contact found. Returns true if any contact was found. Read more

Returns the last contact found, if one exists.

impl Copy for Rectangle
[src]

impl Clone for Rectangle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<Plane> for Rectangle
[src]

Performs the conversion.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Performs the += operation.

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

Performs the -= operation.

impl Shape for Rectangle
[src]

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

Returns the closest point on the shape to the given point.

Sets the center of the shape to p.

impl Polygon for Rectangle
[src]

NUM_VERTICES: usize = 4

The number of vertices and edges available to query.

Returns the ith vertex as a Point.

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

Auto Trait Implementations

impl Send for Rectangle

impl Sync for Rectangle