Struct acacia::partition::cubemap::Quad
[−]
[src]
pub struct Quad {
pub axis: Axis,
pub direction: Direction,
pub flat_quad: UnitQuad,
}A quad-shaped partition of the side of a cubemap
Fields
axis: Axis
Normal axis of the quad normal
direction: Direction
Direction of the quad normal along the axis
flat_quad: UnitQuad
Embedded flat unit quad
Methods
impl Quad[src]
fn center_on_cube<T: BaseFloat + NumCast + Float>(&self) -> Vector3<T>
The center of this quad on the cube
fn center_on_sphere<T: BaseFloat + NumCast + Float>(&self) -> Vector3<T>
The center of this quad on the unit sphere
Trait Implementations
impl Copy for Quad[src]
impl Clone for Quad[src]
fn clone(&self) -> Quad
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Quad[src]
impl PartialEq for Quad[src]
fn eq(&self, __arg_0: &Quad) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Quad) -> bool
This method tests for !=.
impl Hash for Quad[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.