polygon2.transformed
The polygon with a transform applied, as if lying in the z = 0 plane.
Usage
polygon.transformed(xf: Transform): Polygon2Parameters
xfTransformThe transform, column-major.
Returns
A new polygon of the transformed corners with z dropped. A mirror reverses its winding.
Example
Polygon2.rectangle(2, 2).value.transformed(Transform.translation(Vector3.of(5, 0, 0))).points()[0] // → { x: 4, y: -1 }