Constructs a sensor shape such that its receptors resemble a UV sphere.
The Sphere is rotated such that the north pole is aligned with the global front vector (0, 0, 1).
- Parameters
-
segments | The number of receptors in each ring (latitude). Note that there should be at least 4 segments to create a proper UV sphere. |
rings | The number of receptor rings (longitude). Note that there should be at least 1 ring to create a proper sphere. |
radius | The radius of the UV sphere. |
- Returns
- The constructed UV sphere sensor.
- Exceptions
-
OverflowException | If segments * rings is less than 0. |
ArgumentOutOfRangeException | If either segments or rings is less than 0. |