Macro nalgebra_macros::point [−][src]
point!() { /* proc-macro */ }
Expand description
Construct a fixed-size point directly from data.
Note: Requires the macro
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.
Examples
use nalgebra::point; // Produces a Point3<_> let v = point![1, 2, 3];