Trait shades::Geometry [−][src]
Associated Types
type LengthExpr
[src]
Required methods
fn length(&self) -> Self::LengthExpr
[src]
fn distance(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn dot(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn cross(&self, other: impl Into<Self>) -> Self
[src]
fn normalize(&self) -> Self
[src]
fn face_forward(
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self
[src]
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self
fn reflect(&self, normal: impl Into<Self>) -> Self
[src]
fn refract(&self, normal: impl Into<Self>, eta: impl Into<Expr<f32>>) -> Self
[src]
Implementors
impl Geometry for Expr<V2<f32>>
[src]
type LengthExpr = Expr<f32>
fn length(&self) -> Self::LengthExpr
[src]
fn distance(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn dot(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn cross(&self, other: impl Into<Self>) -> Self
[src]
fn normalize(&self) -> Self
[src]
fn face_forward(
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self
[src]
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self
fn reflect(&self, normal: impl Into<Self>) -> Self
[src]
fn refract(&self, normal: impl Into<Self>, eta: impl Into<Expr<f32>>) -> Self
[src]
impl Geometry for Expr<V3<f32>>
[src]
type LengthExpr = Expr<f32>
fn length(&self) -> Self::LengthExpr
[src]
fn distance(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn dot(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn cross(&self, other: impl Into<Self>) -> Self
[src]
fn normalize(&self) -> Self
[src]
fn face_forward(
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self
[src]
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self
fn reflect(&self, normal: impl Into<Self>) -> Self
[src]
fn refract(&self, normal: impl Into<Self>, eta: impl Into<Expr<f32>>) -> Self
[src]
impl Geometry for Expr<V4<f32>>
[src]
type LengthExpr = Expr<f32>
fn length(&self) -> Self::LengthExpr
[src]
fn distance(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn dot(&self, other: impl Into<Self>) -> Self::LengthExpr
[src]
fn cross(&self, other: impl Into<Self>) -> Self
[src]
fn normalize(&self) -> Self
[src]
fn face_forward(
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self
[src]
&self,
normal: impl Into<Self>,
reference: impl Into<Self>
) -> Self