Struct ami::Frustum[][src]

pub struct Frustum {
    pub center: Vector,
    pub radius: f32,
    pub wfov: f32,
    pub hfov: f32,
    pub xrot: f32,
    pub yrot: f32,
}

Single-precision frustum

Fields

The center of the frustum

The radius of the frustum

The fov in x

the fov in y

how much rotated from facing "straight forward" in x

how much rotated from facing "straight forward" in y

Methods

impl Frustum
[src]

Create a new viewing frustum.

  • center - The center of the frustum cone.
  • radius - How far can you see?
  • xrot - Direction facing on x axis (radians).
  • yrot - Direction facing on y axis (radians).
  • wfov - The fov on the X axis (radians).
  • hfov - The fov on the Y axis (radians).

If viewing frustum collides with the bounding box.

If viewing frustum collides with a point.

Trait Implementations

impl Clone for Frustum
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Frustum
[src]

impl PartialEq for Frustum
[src]

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

This method tests for !=.

impl Debug for Frustum
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Frustum

impl Sync for Frustum