Struct siege_math::vector::point::Point2 [] [src]

#[repr(C)]
pub struct Point2<F>(pub Vec2<F>);

Point vector in 2-dimensions

Methods

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

[src]

Methods from Deref<Target = Vec2<F>>

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

impl<F: Clone> Clone for Point2<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 Point2<F>
[src]

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

impl<F: Hash> Hash for Point2<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 Point2<F>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl<F: FullFloat> Add<Vec2<F>> for Point2<F>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<F: FullFloat> Sub<Vec2<F>> for Point2<F>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<F: FullFloat> Sub<Point2<F>> for Point2<F>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl From<Point2<f64>> for Point2<f32>
[src]

[src]

Performs the conversion.

impl From<Point2<f32>> for Point2<f64>
[src]

[src]

Performs the conversion.

impl<F: FullFloat> ApproxEq for Point2<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 Point2<F> where
    F: Send

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