pub struct Point2DD {
pub x: f64,
pub y: f64,
}
Fields§
§x: f64
§y: f64
Implementations§
Source§impl Point2DD
impl Point2DD
pub fn distance_to(&self, other: &Point2DD) -> f64
pub fn is_near(&self, other: &Point2DD, tolerance: f64) -> bool
pub fn new(x: f64, y: f64) -> Point2DD
pub fn set_x(&mut self, x: f64)
pub fn set_xy(&mut self, x: f64, y: f64)
pub fn set_xy_point(&mut self, point_2dd: &Self)
pub fn set_y(&mut self, y: f64)
Trait Implementations§
Source§impl PointXY for Point2DD
impl PointXY for Point2DD
Source§fn angle_to<P: PointXY>(&self, other_pointxy: &P) -> f64
fn angle_to<P: PointXY>(&self, other_pointxy: &P) -> f64
The angle, in radians, from this point to the other point
fn distance(&self, other_x: f64, other_y: f64) -> f64
fn distance_xy<P: PointXY>(&self, other_pointxy: &P) -> f64
fn get_x(&self) -> f64
fn get_y(&self) -> f64
impl Copy for Point2DD
impl Eq for Point2DD
Auto Trait Implementations§
impl Freeze for Point2DD
impl RefUnwindSafe for Point2DD
impl Send for Point2DD
impl Sync for Point2DD
impl Unpin for Point2DD
impl UnwindSafe for Point2DD
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