Struct euler::DVec4[][src]

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

Double-precision 4D vector.

Fields

Methods

impl DVec4
[src]

Full constructor.

Zero constructor.

Returns the XY components of the vector.

Returns the XYZ components of the vector.

impl DVec4
[src]

Returns the dot product of two vectors.

Returns the length (magnitude) of the vector.

Returns the squared length of the vector.

Scales the vector to unit length.

Panics

Panics if the vector is zero.

Trait Implementations

impl Mul<DVec4> for DMat4
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<DVec4> for &'a DMat4
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl From<DVec4> for Vec4
[src]

Performs the conversion.

impl Clone for DVec4
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for DVec4
[src]

impl Debug for DVec4
[src]

Formats the value using the given formatter. Read more

impl Default for DVec4
[src]

Returns the "default value" for a type. Read more

impl PartialEq for DVec4
[src]

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

This method tests for !=.

impl From<f32> for DVec4
[src]

Performs the conversion.

impl From<f64> for DVec4
[src]

Performs the conversion.

impl From<Vec4> for DVec4
[src]

Performs the conversion.

impl<T: Into<DVec2>> From<(T, f64, f64)> for DVec4
[src]

Performs the conversion.

impl<T: Into<DVec3>> From<(T, f64)> for DVec4
[src]

Performs the conversion.

impl Display for DVec4
[src]

Formats the value using the given formatter. Read more

impl Add<DVec4> for DVec4
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign<DVec4> for DVec4
[src]

Performs the += operation.

impl Sub<DVec4> for DVec4
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign<DVec4> for DVec4
[src]

Performs the -= operation.

impl Mul<DVec4> for f64
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<f64> for DVec4
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<f64> for DVec4
[src]

Performs the *= operation.

impl Div<f64> for DVec4
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl DivAssign<f64> for DVec4
[src]

Performs the /= operation.

impl AsRef<[f64; 4]> for DVec4
[src]

Performs the conversion.

impl From<[f64; 4]> for DVec4
[src]

Performs the conversion.

impl Into<[f64; 4]> for DVec4
[src]

Performs the conversion.

impl ApproxEq for DVec4
[src]

Used for specifying relative comparisons.

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

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

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

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

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

The inverse of ApproxEq::relative_eq.

The inverse of ApproxEq::ulps_eq.

Auto Trait Implementations

impl Send for DVec4

impl Sync for DVec4