Fix RTL display of CIV2 bubble corners.

This commit is contained in:
Alex Hart
2023-09-25 10:51:55 -03:00
committed by Cody Henthorne
parent 7d4ebd9d3b
commit b3399b5242
6 changed files with 29 additions and 22 deletions

View File

@@ -290,6 +290,17 @@ public final class Projection {
return bottomRight;
}
public float[] toRelativeRadii(boolean isLTR) {
float[] radii = new float[8];
radii[0] = radii[1] = isLTR ? topLeft : topRight;
radii[2] = radii[3] = isLTR ? topRight : topLeft;
radii[4] = radii[5] = isLTR ? bottomRight : bottomLeft;
radii[6] = radii[7] = isLTR ? bottomLeft : bottomRight;
return radii;
}
public float[] toRadii() {
float[] radii = new float[8];