pub struct PointM {
pub x: f64,
pub y: f64,
pub m: f64,
}
Expand description
Point with x
, y
, m
Fields§
§x: f64
§y: f64
§m: f64
Implementations§
source§impl PointM
impl PointM
sourcepub fn new(x: f64, y: f64, m: f64) -> Self
pub fn new(x: f64, y: f64, m: f64) -> Self
Creates a new pointM
§Examples
use shapefile::PointM;
let point = PointM::new(1.0, 42.0, 13.37);
assert_eq!(point.x, 1.0);
assert_eq!(point.y, 42.0);
assert_eq!(point.m, 13.37);
use shapefile::{PointM, NO_DATA};
let point = PointM::default();
assert_eq!(point.x, 0.0);
assert_eq!(point.y, 0.0);
assert_eq!(point.m, NO_DATA);
Trait Implementations§
source§impl ConcreteReadableShape for PointM
impl ConcreteReadableShape for PointM
source§impl From<Coord> for PointM
impl From<Coord> for PointM
source§fn from(c: Coordinate<f64>) -> Self
fn from(c: Coordinate<f64>) -> Self
Converts to this type from the input type.
source§impl PartialEq for PointM
impl PartialEq for PointM
source§impl WritableShape for PointM
impl WritableShape for PointM
impl ConcreteShape for PointM
impl Copy for PointM
impl StructuralPartialEq for PointM
Auto Trait Implementations§
impl Freeze for PointM
impl RefUnwindSafe for PointM
impl Send for PointM
impl Sync for PointM
impl Unpin for PointM
impl UnwindSafe for PointM
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