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.

Half the lengths of each side of the rectangle.

Trait Implementations

impl BoundedBy<AABB> for Rectangle
[src]

[src]

impl BoundedBy<Sphere> for Rectangle
[src]

[src]

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

[src]

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

[src]

Returns the last contact found, if one exists.

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

[src]

Returns true if the current object contains the argument.

impl Intersects<Ray> for Rectangle
[src]

[src]

Returns an Intersection if one 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]