devela::num::geomType Alias Point2d
Source pub type Point2d<T> = Point<T, 2>;
Available on crate feature geom
only.
Expand description
A specific position in 2d-space without a size.
struct Point2d<T> {
pub coords: [T; 2],
}
The D-dimensional coordinates.
Returns a copy of the first dimension x
.
Returns a copy of the second dimension y
.
Returns a shared reference to the first dimension x
.
Returns a shared reference to the second dimension y
.
Returns an exclusive reference to the first dimension x
.
Returns an exclusive reference to the second dimension y
.