Struct euler::Vec4 [] [src]

#[repr(C)]
pub struct Vec4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, }

4D vector.

Fields

X co-ordinate.

Y co-ordinate.

Z co-ordinate.

Homogeneous W co-ordinate.

Methods

impl Vec4
[src]

[src]

Returns the dot product of two vectors.

[src]

Returns the XYZ components of the vector.

Trait Implementations

impl Clone for Vec4
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Vec4
[src]

impl Debug for Vec4
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Vec4
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl AsRef<[f32; 4]> for Vec4
[src]

[src]

Performs the conversion.

impl From<[f32; 4]> for Vec4
[src]

[src]

Performs the conversion.

impl Into<[f32; 4]> for Vec4
[src]

[src]

Performs the conversion.

impl Mul<f32> for Vec4
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<f32> for Vec4
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Add<Vec4> for Vec4
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<Vec4> for Vec4
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl ApproxEq for Vec4
[src]

Used for specifying relative comparisons.

[src]

The default tolerance to use when testing values that are close together. Read more

[src]

The default relative tolerance for testing values that are far-apart. Read more

[src]

The default ULPs to tolerate when testing values that are far-apart. Read more

[src]

A test for equality that uses a relative comparison if the values are far apart.

[src]

A test for equality that uses units in the last place (ULP) if the values are far apart.

[src]

The inverse of ApproxEq::relative_eq.

[src]

The inverse of ApproxEq::ulps_eq.

impl From<Vector4<f32>> for Vec4
[src]

[src]

Performs the conversion.

impl Into<Vector4<f32>> for Vec4
[src]

[src]

Performs the conversion.