Struct graphene::Frustum[][src]

pub struct Frustum(_);
Expand description

A 3D volume delimited by 2D clip planes.

The contents of the graphene_frustum_t are private, and should not be modified directly.

Implementations

Checks whether a point is inside the volume defined by the given Frustum.

point

a Point3D

Returns

true if the point is inside the frustum

Initializes the given Frustum using the provided clipping planes.

p0

a clipping plane

p1

a clipping plane

p2

a clipping plane

p3

a clipping plane

p4

a clipping plane

p5

a clipping plane

Returns

the initialized frustum

Initializes the given Frustum using the clipping planes of another Frustum.

src

a Frustum

Returns

the initialized frustum

Initializes a Frustum using the given matrix.

matrix

a Matrix

Returns

the initialized frustum

Checks whether the given box_ intersects a plane of a Frustum.

box_

a Box

Returns

true if the box intersects the frustum

Checks whether the given sphere intersects a plane of a Frustum.

sphere

a Sphere

Returns

true if the sphere intersects the frustum

Retrieves the planes that define the given Frustum.

Returns

planes

return location for an array of 6 Plane

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Returns the type identifier of Self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.