AngleSweepProps Type

AngleSweepProps = AngleSweep | { degrees: [number, number] } | { radians: [number, number] } | [number, number]

The properties for a JSON representation of an AngleSweep.

  • The json data is always start and end angles as a pair in an array.
  • If AngleSweepProps data is an array of two numbers, those are both angles in degrees.
  • If AngleSweepProps data is an object with key degrees, then the corresponding value must be an array of two numbers, the start and end angles in degrees.
  • If the AngleSweepProps is an object with key radians, then the corresponding value must be an array of two numbers, the start and end angles in radians.

Defined in

Last Updated: 17 December, 2024