Struct robust2d::primitives::Point
[−]
[src]
#[repr(C)]pub struct Point<T: Float> { pub x: T, pub y: T, }
A 2D point.
Fields
x: T
y: T
Methods
impl<T: Float> Point<T>
[src]
fn new(x: T, y: T) -> Self
impl Point<f64>
[src]
fn orient_to_points(&self, p1: &Point<f64>, p2: &Point<f64>) -> Orientation
Relates this point to a line through two points. Inside means to the left , that is, the argument points followed by this point makes a left turn.
fn orient_to_circle(
&self,
p1: &Point<f64>,
p2: &Point<f64>,
p3: &Point<f64>
) -> Orientation
&self,
p1: &Point<f64>,
p2: &Point<f64>,
p3: &Point<f64>
) -> Orientation
Relates this point to a circle through three points. The three circle points must form a counterclockwise turn or relation will be reversed.