S1ChordAngle.this

Conversion from an S1Angle. Angles outside the range [0, Pi] are handled as follows: Infinity() is mapped to Infinity(), negative angles are mapped to Negative(), and finite angles larger than Pi are mapped to Straight().

Note that this operation is relatively expensive and should be avoided. To use S1ChordAngle effectively, you should structure your code so that input arguments are converted to S1ChordAngles at the beginning of your algorithm, and results are converted back to S1Angles only at the end.

  1. this(S2Point x, S2Point y)
  2. this(S1ChordAngle chordAngle)
  3. this(S1Angle angle)
    struct S1ChordAngle
    this
    out { assert (isValid(), toString() ~ " is invalid."); }

Meta