Skip to main content

Module transform

Module transform 

Source
Expand description

TransformStrategy<P> and affine implementations.

The trait mirrors the per-CS transform-strategy concept from boost/geometry/strategies/transform/services.hpp; the affine matrices mirror boost::geometry::strategy::transform::matrix_transformer and its translate_/rotate_/scale_transformer siblings from boost/geometry/strategies/transform/matrix_transformers.hpp.

Boost’s apply(src, dst) mutates the destination through an out-parameter; the Rust port returns the destination by value, which makes the output type explicit and lines up with the KC1 PointMut bound used to build it.

Structs§

Affine2
3×3 affine matrix in homogeneous 2D coordinates.
Affine3
4×4 affine matrix in homogeneous 3D coordinates. Same shape as Affine2, one dimension up.
Rotate
Named constructor for 2D rotation strategies.
Scale
Named constructor for 2D scale strategies.
Skew
Named constructor for 2D shear/skew strategies.
Translate
Named constructor for 2D translation strategies.

Traits§

TransformStrategy
A function from one Point to another, used by transform.