point!() { /* proc-macro */ }
Expand description
Construct a fixed-size point directly from data.
Note: Requires the macros
feature to be enabled (enabled by default).
Similarly to vector!
, this macro facilitates easy construction of points.
point!
is intended to be the most readable and performant way of constructing small,
points, and it is usable in const fn
contexts.
§Example
use nalgebra::point;
// Produces a Point3<_>
let v = point![1, 2, 3];