Type Definition building_blocks_core::point::Point2[][src]

pub type Point2<T> = PointN<[T; 2]>;
Expand description

A 2-dimensional point with scalar type T.

Implementations

Trait Implementations

The L1 distance between points.

The square of the L2 (Euclidean) distance between points.

The vector dot product.

Performs the conversion.

Performs the conversion.

Returns the component specified by index. I.e. X = 0, Y = 1, Z = 2.

Returns the point after applying f component-wise.

Returns the point after applying f component-wise to both self and other in parallel.

A point of all ones.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more