Commit 848c43a7 authored by Philip A Levis's avatar Philip A Levis
Browse files

Apply suggestion to software/ui/src/Geometry.java

parent ed6185f6
......@@ -72,6 +72,10 @@ interface GeometryConstants {
return flyer * NUM_LIGHT_POINTS_PER_FLYER + LightSamplePoint.LightCorners.BODY.position;
}
default int flyerLightStartIndex(int flyer) {
return flyer * NUM_LIGHT_POINTS_PER_FLYER;
}
default int wingLightIndex(int flyer, boolean right, int which) {
return 1 + (flyer * NUM_LIGHT_POINTS_PER_FLYER) + (right? NUM_LIGHT_POINTS_PER_WING: 0) + which;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment