Struct adi_gpu_base::Mat4 [−][src]
A 4x4 Matrix
Methods
impl Mat4
[src]
impl Mat4
pub fn matrix(self, matrix: [f32; 16]) -> Mat4
[src]
pub fn matrix(self, matrix: [f32; 16]) -> Mat4
Multiply self
by a matrix.
pub fn scale(self, x: f32, y: f32, z: f32) -> Mat4
[src]
pub fn scale(self, x: f32, y: f32, z: f32) -> Mat4
Multiply self
by a scale transformation matrix.
pub fn translate(self, x: f32, y: f32, z: f32) -> Mat4
[src]
pub fn translate(self, x: f32, y: f32, z: f32) -> Mat4
Multiply self
by a translation matrix.
pub fn rotate(self, x: f32, y: f32, z: f32) -> Mat4
[src]
pub fn rotate(self, x: f32, y: f32, z: f32) -> Mat4
Multiply self
by a rotation matrix. x
, y
and z
are in PI
Radians.
Trait Implementations
impl Display for Mat4
[src]
impl Display for Mat4
fn fmt(&self, fmtr: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, fmtr: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Clone for Mat4
[src]
impl Clone for Mat4
fn clone(&self) -> Mat4
[src]
fn clone(&self) -> Mat4
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Mul<Vec4> for Mat4
[src]
impl Mul<Vec4> for Mat4
type Output = Vec4
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec4) -> <Mat4 as Mul<Vec4>>::Output
[src]
fn mul(self, rhs: Vec4) -> <Mat4 as Mul<Vec4>>::Output
Transform as a position.
impl Mul<Plane> for Mat4
[src]
impl Mul<Plane> for Mat4
type Output = Plane
The resulting type after applying the *
operator.
fn mul(self, rhs: Plane) -> <Mat4 as Mul<Plane>>::Output
[src]
fn mul(self, rhs: Plane) -> <Mat4 as Mul<Plane>>::Output
Performs the *
operation.
impl Mul<Mat4> for Mat4
[src]
impl Mul<Mat4> for Mat4
type Output = Mat4
The resulting type after applying the *
operator.
fn mul(self, rhs: Mat4) -> <Mat4 as Mul<Mat4>>::Output
[src]
fn mul(self, rhs: Mat4) -> <Mat4 as Mul<Mat4>>::Output
Performs the *
operation.
impl Mul<Frustum> for Mat4
[src]
impl Mul<Frustum> for Mat4
type Output = Frustum
The resulting type after applying the *
operator.
fn mul(self, rhs: Frustum) -> <Mat4 as Mul<Frustum>>::Output
[src]
fn mul(self, rhs: Frustum) -> <Mat4 as Mul<Frustum>>::Output
Performs the *
operation.
impl Mul<Vec3> for Mat4
[src]
impl Mul<Vec3> for Mat4
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec3) -> <Mat4 as Mul<Vec3>>::Output
[src]
fn mul(self, rhs: Vec3) -> <Mat4 as Mul<Vec3>>::Output
Transform as a position.
impl Copy for Mat4
[src]
impl Copy for Mat4
impl PartialEq<Mat4> for Mat4
[src]
impl PartialEq<Mat4> for Mat4