Expand description
A simple and flexible no-std struct, based on an array, used to model points on axes of any dimensions.
See the PointND struct for basic usage
§Compatibility
This crate was designed to be no_std and wasm compatible, and has been tested in those environments.
PointND uses constant generics, it is recommended for use with a Rust version of at least 1.51
§Features
-
conv_methods-
Enabled by default
-
Methods which access and transform the values contained by 1..=4 dimensional points.
-
Enables the following sub-features (each of which can be enabled individually if needed):
-
x: Convenience methods for1Dpoints -
y: Convenience methods for2Dpoints -
z: Convenience methods for3Dpoints -
w: Convenience methods for4Dpoints
-
-
-
appliers-
Enabled by default
-
Methods which allow function pointers to be passed to points in order to transform values.
-
If this and the
var-dimsfeature are disabled, this crate will include zero dependencies
-
-
var-dims-
Methods which append or remove values from points.
-
If this and the
appliersfeature are disabled, this crate will include zero dependencies
-
Structs§
- PointND
- The whole point of the crate.
Type Aliases§
- Apply
Dims Fn - Function pointer type to pass to
apply_dims()inPointND’s - ApplyFn
- Function pointer type to pass to
apply()inPointND’s - Apply
Point Fn - Function pointer type to pass to
apply_point()inPointND’s - Apply
Vals Fn - Function pointer type to pass to
apply_vals()inPointND’s