Swizzle3

Trait Swizzle3 

Source
pub trait Swizzle3<T>
where T: Scalar,
{
Show 27 methods // Required methods fn xxx(&self) -> Vector3<T>; fn xxy(&self) -> Vector3<T>; fn xxz(&self) -> Vector3<T>; fn xyx(&self) -> Vector3<T>; fn xyy(&self) -> Vector3<T>; fn xyz(&self) -> Vector3<T>; fn xzx(&self) -> Vector3<T>; fn xzy(&self) -> Vector3<T>; fn xzz(&self) -> Vector3<T>; fn yxx(&self) -> Vector3<T>; fn yxy(&self) -> Vector3<T>; fn yxz(&self) -> Vector3<T>; fn yyx(&self) -> Vector3<T>; fn yyy(&self) -> Vector3<T>; fn yyz(&self) -> Vector3<T>; fn yzx(&self) -> Vector3<T>; fn yzy(&self) -> Vector3<T>; fn yzz(&self) -> Vector3<T>; fn zxx(&self) -> Vector3<T>; fn zxy(&self) -> Vector3<T>; fn zxz(&self) -> Vector3<T>; fn zyx(&self) -> Vector3<T>; fn zyy(&self) -> Vector3<T>; fn zyz(&self) -> Vector3<T>; fn zzx(&self) -> Vector3<T>; fn zzy(&self) -> Vector3<T>; fn zzz(&self) -> Vector3<T>;
}
Expand description

Trait for 3D swizzle operations on vectors.

Provides methods to rearrange and duplicate vector components into 3D vectors using familiar shader-style syntax.

Required Methods§

Source

fn xxx(&self) -> Vector3<T>

Source

fn xxy(&self) -> Vector3<T>

Source

fn xxz(&self) -> Vector3<T>

Source

fn xyx(&self) -> Vector3<T>

Source

fn xyy(&self) -> Vector3<T>

Source

fn xyz(&self) -> Vector3<T>

Source

fn xzx(&self) -> Vector3<T>

Source

fn xzy(&self) -> Vector3<T>

Source

fn xzz(&self) -> Vector3<T>

Source

fn yxx(&self) -> Vector3<T>

Source

fn yxy(&self) -> Vector3<T>

Source

fn yxz(&self) -> Vector3<T>

Source

fn yyx(&self) -> Vector3<T>

Source

fn yyy(&self) -> Vector3<T>

Source

fn yyz(&self) -> Vector3<T>

Source

fn yzx(&self) -> Vector3<T>

Source

fn yzy(&self) -> Vector3<T>

Source

fn yzz(&self) -> Vector3<T>

Source

fn zxx(&self) -> Vector3<T>

Source

fn zxy(&self) -> Vector3<T>

Source

fn zxz(&self) -> Vector3<T>

Source

fn zyx(&self) -> Vector3<T>

Source

fn zyy(&self) -> Vector3<T>

Source

fn zyz(&self) -> Vector3<T>

Source

fn zzx(&self) -> Vector3<T>

Source

fn zzy(&self) -> Vector3<T>

Source

fn zzz(&self) -> Vector3<T>

Implementors§

Source§

impl<T> Swizzle3<T> for Vector3<T>
where T: Scalar,

Source§

impl<T> Swizzle3<T> for Vector4<T>
where T: Scalar,