pub struct Point {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A point in 3D space.
§Example
use harmonica::Point;
let origin = Point::default();
let p = Point::new(1.0, 2.0, 3.0);
// Points support arithmetic operations
let p2 = Point::new(4.0, 5.0, 6.0);Fields§
§x: f64X coordinate.
y: f64Y coordinate.
z: f64Z coordinate.
Implementations§
Trait Implementations§
Source§impl AddAssign<Vector> for Point
impl AddAssign<Vector> for Point
Source§fn add_assign(&mut self, v: Vector)
fn add_assign(&mut self, v: Vector)
Performs the
+= operation. Read moreimpl Copy for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
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