Struct rust_3d::Norm2D [] [src]

pub struct Norm2D { /* fields omitted */ }

Norm2D, a normalized vector within 2D space

Trait Implementations

impl Debug for Norm2D
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Norm2D
[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 Norm2D
[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 Clone for Norm2D
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Norm2D
[src]

impl Ord for Norm2D
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Norm2D
[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 Mul<f64> for Norm2D
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl IsND for Norm2D
[src]

[src]

Should return the number of dimensions. E.g. 2 for points in 2D space, 3 for points in 3D space etc.

[src]

Should return the value of a given dimensions. E.g. for 2D position with x = 4.3, y = 1.8 the result for dimension = 1 should be 1.8

impl Is2D for Norm2D
[src]

[src]

Should return the x-coordinate

[src]

Should return the y-coordinate

[src]

Returns the Position as x,y tuple

[src]

Calculates the dot product with another Is2D

[src]

Calculates the cross product with another Is2D

[src]

The absolute / length of this position

[src]

Calculates the angle to the other Is2D in radians

[src]

Transforms the position in a "x y" string. E.g. "3.72 5.99"

impl IsNormalized2D for Norm2D
[src]

[src]

Should return a new normalized object

[src]

Should return a new normalized object which only points in the x-Direction

[src]

Should return a new normalized object which only points in the y-Direction

Auto Trait Implementations

impl Send for Norm2D

impl Sync for Norm2D