Struct voronoi::Point [] [src]

pub struct Point {
    pub x: OrderedFloat<f64>,
    pub y: OrderedFloat<f64>,
}

A point in two dimensions

Fields

x coordinate

y coordinate

Methods

impl Point
[src]

[src]

Constructs a new Point.

[src]

Getter for the x coordinate.

[src]

Getter for the y coordinate.

impl Point
[src]

[src]

Computes the cross product of two points, viewed as vectors from the origin.

[src]

Computes the dot product of two points, viewed as vectors from the origin.

Trait Implementations

impl Clone for Point
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Point
[src]

impl PartialEq for Point
[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 Eq for Point
[src]

impl Debug for Point
[src]

[src]

Formats the value using the given formatter.

impl Rand for Point
[src]

[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl Mul<f64> for Point
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Sub<Point> for Point
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Add<Point> for Point
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl PartialOrd for Point
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl Ord for Point
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more