Struct siege_math::vector::direction::Direction2 [] [src]

#[repr(C)]
pub struct Direction2<F>(_);

Direction vector in 2-dimensions (normalized)

Methods

impl<F: FullFloat> Direction2<F>
[src]

[src]

Methods from Deref<Target = Vec2<F>>

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<F: Debug> Debug for Direction2<F>
[src]

[src]

Formats the value using the given formatter. Read more

impl<F: Clone> Clone for Direction2<F>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<F: Copy> Copy for Direction2<F>
[src]

impl<F: PartialEq> PartialEq for Direction2<F>
[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<F: Eq> Eq for Direction2<F>
[src]

impl<F: Hash> Hash for Direction2<F>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<F: FullFloat> Deref for Direction2<F>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<F: FullFloat> From<Direction2<F>> for Vec2<F>
[src]

[src]

Performs the conversion.

impl<F: FullFloat> From<Vec2<F>> for Direction2<F>
[src]

[src]

Performs the conversion.

impl<F: FullFloat> ApproxEq for Direction2<F>
[src]

[src]

This method tests for self and other values to be approximately equal using two methods: epsilon and ulps. If the values differ by less than the given epsilon, they will be considered equal. If the values differ by more than epsilon, but by less than the given ulps, they will also be considered equal. Otherwise they are unequal. Read more

[src]

This method tests for self and other values to be not approximately equal using two methods: epsilon and ulps. If the values differ by less than the given epsilon, they will be considered equal. If the values differ by more than epsilon, but by less than the given ulps, they will also be considered equal. Otherwise they are unequal. Read more

Auto Trait Implementations

impl<F> Send for Direction2<F> where
    F: Send

impl<F> Sync for Direction2<F> where
    F: Sync