0

So I have a boolean representation and inside that representation contains shapes. All the points of the shape must be true in the boolean array. For some reason its not putting the points on the array. Here is my code, please help me!

```
for (int d = 0; d < 360; d++)
{
for(int r = 0; r < (int)(this.diameter/2); r++)
{
double x = r * Math.cos(Math.toRadians(d));
double y = r * Math.sin(Math.toRadians(d));
booleanRepresentation[(int)(x + (this.x + (this.diameter/2)))][(int)(y + (this.y + (this.diameter/2)))] = true;
}
}
```