Type Definition turbine::math::Vec3 [] [src]

type Vec3 = [f32; 3];

Vector type: x, y, z.

Trait Implementations

impl Vector for Vec3
[src]

[src]

Returns a vector with zero length.

[src]

Returns a vector in the forward direction.

[src]

Creates vector from 2D position. Returns a vector in normalized coordinates. Read more

[src]

Creates vector from 4D position. Ignores the w component. Read more

[src]

Adds two vectors.

[src]

Subtracts two vectors.

[src]

Returns dot product of two vectors.

[src]

Scales a vector.

[src]

Returns the normalized vector.

[src]

Creates a homogeneous point. Puts 1.0 in the w component. Read more

[src]

Create a homogeneous vector. Puts 0.0 in the w component. Read more

[src]

Cast to [i32; 2].