#[repr(C)]pub struct IPLTriangle {
pub indices: [IPLint32; 3],
}Expand description
A triangle in 3D space.
Triangles are specified by their three vertices, which are in turn specified using indices into a vertex array.
Steam Audio uses a counter-clockwise winding order. This means that when looking at the triangle such that the normal is pointing towards you, the vertices are specified in counter-clockwise order.
Each triangle must be specified using three vertices; triangle strip or fan representations are not supported.
Fields§
§indices: [IPLint32; 3]Indices of the three vertices of this triangle.
Trait Implementations§
Source§impl Clone for IPLTriangle
impl Clone for IPLTriangle
Source§fn clone(&self) -> IPLTriangle
fn clone(&self) -> IPLTriangle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IPLTriangle
impl Debug for IPLTriangle
impl Copy for IPLTriangle
Auto Trait Implementations§
impl Freeze for IPLTriangle
impl RefUnwindSafe for IPLTriangle
impl Send for IPLTriangle
impl Sync for IPLTriangle
impl Unpin for IPLTriangle
impl UnwindSafe for IPLTriangle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more