Struct ami::Frustum [] [src]

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

A 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]

[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).

[src]

[src]

If viewing frustum collides with the bounding box.

[src]

If viewing frustum collides with a point.

Trait Implementations

impl Mul<Frustum> for Mat4
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Clone for Frustum
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Frustum
[src]

impl PartialEq for Frustum
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Frustum
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Frustum

impl Sync for Frustum