Method TransformBy
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TransformBy(GeoTransform3)
Applies a transformation to this arc.
public GeoArc3 TransformBy(GeoTransform3 transform)
Parameters
transformGeoTransform3The transformation to apply.
Returns
- GeoArc3
The transformed arc.
Remarks
A turn, a shift, a mirror or an even scaling of the arc's plane moves the arc whole, by its centre and its radius, so an arc of any sweep moves: the arc of radius 100 sweeping a whole turn less 1E-9 turned 0.7 radians about any axis, which threw, its ends being too close to tell a chord between. One whose axes of the plane are one length and square to each other only to a share of some 1E-9 moves it whole where it lands within the global point tolerance so, and reads it as a stretch otherwise: X stretched by a share of 4E-10 and scaled by 1 000 took the arc of radius 1E5 sweeping 6 radians to one 0.04 off, and refuses it. Any other transformation, a skew or a stretch of its plane, makes part of an ellipse of the arc, and the arc through where its two ends and its middle land stands for it only where it lands within the global point tolerance of where the transformation puts the rest of it, everywhere along it, not only at every sixteenth of its sweep, and is refused otherwise: a stretch of 3E-6 moves the arc of radius 100 a whole turn less 1 at the scale it is drawn, 0.00035 off, and refuses it scaled by 1 000, where it would be 0.35 off. A skew that keeps both axes of the plane one length is judged alike: the one that sends X to (1, 0, 0) and Y to (0.6, 0.8, 0) refuses the arc of radius 100 in the plan from 0.5 to 2 radians, which went to an arc of radius 177.7 far off the ellipse it becomes, and a turn of 0.7529 radians of a stretch of 1 + 4.29E-9 and a shear of 9.28E-5, scaled by 55.57, refuses the arc of radius 9 069.6, which it took to one 9.16 off. Each point is read from the moved start across the arc, so an arc bowing a hair off its chord is judged as surely as a half circle. An arc of a whole turn has no ends to go through: it is the whole circle, and is refused under a skew, since it would be an ellipse; one past a half turn whose ends the skew brings within the global point tolerance of each other is refused too. Where the ends come that close under a transformation that carries a circle, a turn whose numbers are rounded to six places or to a float, the arc is moved whole as the whole turn is.
Exceptions
- ArgumentNullException
Thrown when the transformation is null.
- InvalidOperationException
Thrown when the transformation would skew or stretch the arc into part of an ellipse, so that the arc through where its ends and its middle land would land further than the global point tolerance from where its points are put, or, for an arc of a whole turn, would skew or stretch it, as Transform(GeoCircle3) refuses a circle.
- ArgumentException
Thrown when a skew, a transformation Transform(GeoCircle3) would refuse for a circle in the arc's plane, brings the two ends of an arc past a half turn within the global point tolerance of each other, so that no arc can be told through them and its middle.