Struct axgeom::Vec2 [] [src]

#[must_use]
pub struct Vec2 { /* fields omitted */ }

A 2d point made up of f32's with a way to get the value on a particular axis easily.

Methods

impl Vec2
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Calculates the dot product.

[src]

Force the length of the vec to of max length nlen. If the length of the vec is zero, this will panic.

[src]

[src]

[src]

Calculates len using sqrt().

[src]

Trait Implementations

impl Copy for Vec2
[src]

impl Clone for Vec2
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Vec2
[src]

[src]

Formats the value using the given formatter.

impl Add for Vec2
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Mul<f32> for Vec2
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<f32> for Vec2
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Neg for Vec2
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl MulAssign<f32> for Vec2
[src]

[src]

Performs the *= operation.

impl AddAssign for Vec2
[src]

[src]

Performs the += operation.

impl Sub for Vec2
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.