Struct isosurface::math::Vec3 [] [src]

pub struct Vec3 {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

A 3 dimensional vector

Ideally we'd reuse an exiting geometry library, but in the interest both of minimising dependencies, and of compatibility with multiple geometry libraries, we'll define our own.

Fields

Methods

impl Vec3
[src]

[src]

Create a vector

[src]

Create a vector with all coordinates set to zero

[src]

Create a vector with all coordinates set to one

Trait Implementations

impl Debug for Vec3
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Vec3
[src]

impl Clone for Vec3
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Vec3
[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 PartialOrd for Vec3
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Add for Vec3
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub for Vec3
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul for Vec3
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<f32> for Vec3
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div for Vec3
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

Auto Trait Implementations

impl Send for Vec3

impl Sync for Vec3