Struct valora::geom::point::Point
[−]
[src]
pub struct Point { pub x: f32, pub y: f32, }
Fields
x: f32
y: f32
Methods
impl Point
[src]
pub fn center() -> Point
[src]
pub fn abs(self) -> Point
[src]
pub fn manhattan(self, point: Point) -> f32
[src]
Trait Implementations
impl Debug for Point
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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 Default for Point
[src]
impl Add for Point
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.
impl AddAssign for Point
[src]
fn add_assign(&mut self, rhs: Self)
[src]
Performs the +=
operation.
impl Sub for Point
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
Performs the -
operation.
impl SubAssign for Point
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
Performs the -=
operation.
impl Mul<Point> for Point
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Point) -> Self
[src]
Performs the *
operation.
impl MulAssign<Point> for Point
[src]
fn mul_assign(&mut self, rhs: Point)
[src]
Performs the *=
operation.
impl Mul<f32> for Point
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Self
[src]
Performs the *
operation.
impl MulAssign<f32> for Point
[src]
fn mul_assign(&mut self, rhs: f32)
[src]
Performs the *=
operation.
impl Div<f32> for Point
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Self
[src]
Performs the /
operation.
impl Translate for Point
[src]
impl Distance<Self> for Point
[src]
fn distance(&self, dest: Self) -> f32
[src]
fn delta(&self, dest: Self) -> Self
[src]
fn midpoint(&self, dest: Self) -> Self
[src]
fn manhattan_distance(&self, dest: Self) -> f32
[src]
impl Rand for Point
[src]
fn rand<R: Rng>(rng: &mut R) -> Point
[src]
Generates a random instance of this type using the specified source of randomness. Read more