pub struct Point2 {
pub x: f64,
pub y: f64,
}Expand description
Continuous 2D point in polygon-scene coordinates (not grid cells). Continuous 2D point in world / scene coordinates (not grid cells).
Shared by polygonal free-space, any-angle continuous, and navmesh surfaces.
Equality is exact f64 bit identity; geometry epsilon lives in domain crates.
Fields§
§x: f64Horizontal world/scene coordinate (same units as domain geometry).
y: f64Vertical world/scene coordinate (same units as domain geometry).
Implementations§
Trait Implementations§
impl Copy for Point2
impl StructuralPartialEq for Point2
Auto Trait Implementations§
impl Freeze for Point2
impl RefUnwindSafe for Point2
impl Send for Point2
impl Sync for Point2
impl Unpin for Point2
impl UnsafeUnpin for Point2
impl UnwindSafe for Point2
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