Struct aabb_quadtree::geom::Point
[−]
[src]
pub struct Point { pub x: f32, pub y: f32, }
Fields
x: f32
y: f32
Methods
impl Point
[src]
fn close_to(&self, other: &Point, epsilon: f32) -> bool
[src]
fn distance(&self, other: &Point) -> f32
[src]
fn distance_2(&self, other: &Point) -> f32
[src]
Trait Implementations
impl PartialOrd for Point
[src]
fn partial_cmp(&self, __arg_0: &Point) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Point) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Point) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Point) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Point) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Point
[src]
fn eq(&self, __arg_0: &Point) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Point) -> bool
[src]
This method tests for !=
.
impl Copy for Point
[src]
impl Clone for Point
[src]
fn clone(&self) -> Point
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Point
[src]
impl Sub<Vector> for Point
[src]
type Output = Point
The resulting type after applying the -
operator.
fn sub(self, rhs: Vector) -> Point
[src]
Performs the -
operation.
impl Add<Vector> for Point
[src]
type Output = Point
The resulting type after applying the +
operator.
fn add(self, rhs: Vector) -> Point
[src]
Performs the +
operation.
impl Sub<Point> for Point
[src]
type Output = Vector
The resulting type after applying the -
operator.
fn sub(self, rhs: Point) -> Vector
[src]
Performs the -
operation.