Polarith AI
1.8

◆ CreateLine()

static PlanarSensor CreateLine ( int  receptorCount,
float  width,
float  positionY,
PlanarOrientationType  planarOrientation = PlanarOrientationType.PlaneXY 
)
static

Constructs a sensor shape so that its receptors lay on a horizontal line pointing upwards.

Parameters
receptorCountThe number of receptors the created line shape gets.
widthThe width of the created line shape.
positionYThe local y-position for each receptor, can be seen as vertical offset.
planarOrientationOptionally, specifies how this sensor is oriented with respect to a virtual axis-aligned plane.
Returns
The constructed line shape.
Exceptions
DivideByZeroExceptionIf receptorCount is 0.
Imprint