Struct hexagon_tiles::point::Point
source · pub struct Point {
pub x: f64,
pub y: f64,
}
Fields§
§x: f64
§y: f64
Trait Implementations§
source§impl AssertFloatEq for Point
impl AssertFloatEq for Point
§type DebugAbsDiff = Point
type DebugAbsDiff = Point
The absolute difference between two values, displayed to the user via
fmt::Debug
when an assert fails. Read more§type DebugTol = Point
type DebugTol = Point
The per-field tolerance value used for comparison between two values,
displayed to the user via
fmt::Debug
when an assert fails. Read moresource§fn debug_abs_diff(&self, other: &Self) -> Self
fn debug_abs_diff(&self, other: &Self) -> Self
Always positive absolute difference between two values. Read more
source§fn debug_ulps_diff(&self, other: &Self) -> PointUlpsDebugUlpsDiff
fn debug_ulps_diff(&self, other: &Self) -> PointUlpsDebugUlpsDiff
source§fn debug_abs_tol(&self, other: &Self, tol: &Self) -> Self
fn debug_abs_tol(&self, other: &Self, tol: &Self) -> Self
The tolerance used by an
abs
comparison, displayed when an assert fails.source§fn debug_rmax_tol(&self, other: &Self, tol: &Self) -> Self
fn debug_rmax_tol(&self, other: &Self, tol: &Self) -> Self
source§fn debug_rmin_tol(&self, other: &Self, tol: &Self) -> Self
fn debug_rmin_tol(&self, other: &Self, tol: &Self) -> Self
source§fn debug_r1st_tol(&self, other: &Self, tol: &Self) -> Self
fn debug_r1st_tol(&self, other: &Self, tol: &Self) -> Self
source§fn debug_r2nd_tol(&self, other: &Self, tol: &Self) -> Self
fn debug_r2nd_tol(&self, other: &Self, tol: &Self) -> Self
source§fn debug_ulps_tol(&self, other: &Self, tol: &PointUlps) -> PointUlps
fn debug_ulps_tol(&self, other: &Self, tol: &PointUlps) -> PointUlps
The tolerance used by an
ulps
comparison, displayed when an assert fails.source§impl AssertFloatEqAll for Point
impl AssertFloatEqAll for Point
§type AllDebugTol = Point
type AllDebugTol = Point
Displayed to the user when an assert fails, using
fmt::Debug
. Read moresource§fn debug_abs_all_tol(&self, other: &Self, tol: &f64) -> Self
fn debug_abs_all_tol(&self, other: &Self, tol: &f64) -> Self
The tolerance used by an
abs_all
comparison, displayed when an assert fails.source§fn debug_rmax_all_tol(&self, other: &Self, tol: &f64) -> Self
fn debug_rmax_all_tol(&self, other: &Self, tol: &f64) -> Self
source§fn debug_rmin_all_tol(&self, other: &Self, tol: &f64) -> Self
fn debug_rmin_all_tol(&self, other: &Self, tol: &f64) -> Self
source§fn debug_r1st_all_tol(&self, other: &Self, tol: &f64) -> Self
fn debug_r1st_all_tol(&self, other: &Self, tol: &f64) -> Self
source§fn debug_r2nd_all_tol(&self, other: &Self, tol: &f64) -> Self
fn debug_r2nd_all_tol(&self, other: &Self, tol: &f64) -> Self
source§fn debug_ulps_all_tol(
&self,
other: &Self,
tol: &UlpsTol<Self::AllTol>
) -> UlpsTol<Self::AllDebugTol>
fn debug_ulps_all_tol( &self, other: &Self, tol: &UlpsTol<Self::AllTol> ) -> UlpsTol<Self::AllDebugTol>
The tolerance used by an
ulps_all
comparison, displayed when an assert fails.source§fn debug_rel_all_tol(
&self,
other: &Rhs,
tol: &Self::AllTol
) -> Self::AllDebugTol
fn debug_rel_all_tol( &self, other: &Rhs, tol: &Self::AllTol ) -> Self::AllDebugTol
source§impl FloatEq for Point
impl FloatEq for Point
§type Tol = Point
type Tol = Point
Type of the maximum allowed difference between two values for them to be
considered equal.
source§fn eq_rmax(&self, other: &Self, tol: &Self) -> bool
fn eq_rmax(&self, other: &Self, tol: &Self) -> bool
Check whether
self
is equal to other
, using a relative tolerance
comparison, scaled to the granularity of the input with the largest
magnitude. Read moresource§fn eq_rmin(&self, other: &Self, tol: &Self) -> bool
fn eq_rmin(&self, other: &Self, tol: &Self) -> bool
Check whether
self
is equal to other
, using a relative tolerance
comparison, scaled to the granularity of the input with the smallest
magnitude. Read moresource§fn eq_r1st(&self, other: &Self, tol: &Self) -> bool
fn eq_r1st(&self, other: &Self, tol: &Self) -> bool
Check whether
self
is equal to other
, using a relative tolerance
comparison, scaled to the granularity of the first input. Read moresource§fn eq_r2nd(&self, other: &Self, tol: &Self) -> bool
fn eq_r2nd(&self, other: &Self, tol: &Self) -> bool
Check whether
self
is equal to other
, using a relative tolerance
comparison, scaled to the granularity of the second input. Read moresource§impl FloatEqAll for Point
impl FloatEqAll for Point
§type AllTol = f64
type AllTol = f64
Type of the maximum allowed difference between each of two values’ fields
for them to be considered equal.
source§fn ne_ulps_all(
&self,
other: &Rhs,
tol: &<Self::AllTol as FloatEqUlpsTol>::UlpsTol
) -> bool
fn ne_ulps_all( &self, other: &Rhs, tol: &<Self::AllTol as FloatEqUlpsTol>::UlpsTol ) -> bool
source§impl FloatEqDebugUlpsDiff for Point
impl FloatEqDebugUlpsDiff for Point
§type DebugUlpsDiff = PointUlpsDebugUlpsDiff
type DebugUlpsDiff = PointUlpsDebugUlpsDiff
A structurally identical type to
Self
, with fields recursively wrapped
by DebugUlpsDiff
.source§impl FloatEqUlpsTol for Point
impl FloatEqUlpsTol for Point
source§impl PartialEq for Point
impl PartialEq for Point
impl Copy for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more