pub type Point3d<T> = Point<T, 3>;
Available on crate feature
geom
only.Expand description
A specific position in 3d-space without a size.
Aliased Type§
struct Point3d<T> {
pub coords: [T; 3],
}
Fields§
§coords: [T; 3]
The D-dimensional coordinates.
Implementations§
Source§impl<T, const D: usize> Point<T, D>
impl<T, const D: usize> Point<T, D>
Sourcepub fn into_vector(self) -> Vector<T, D> ⓘ
Available on crate feature alg
only.
pub fn into_vector(self) -> Vector<T, D> ⓘ
alg
only.Consumes this Point
and converts it into a Vector
.
Sourcepub const fn to_vector(self) -> Vector<T, D> ⓘwhere
T: Copy,
Available on crate feature alg
only.
pub const fn to_vector(self) -> Vector<T, D> ⓘwhere
T: Copy,
alg
only.Converts this Point
to a Vector
, keeping self
intact.
Sourcepub fn from_vector(v: Vector<T, D>) -> Self
Available on crate feature alg
only.
pub fn from_vector(v: Vector<T, D>) -> Self
alg
only.Creates a Point
from a Vector
.
Sourcepub const fn from_vector_const(v: Vector<T, D>) -> Selfwhere
T: Copy,
Available on crate feature alg
only.
pub const fn from_vector_const(v: Vector<T, D>) -> Selfwhere
T: Copy,
alg
only.Creates a Point
from a constant Vector
.