Skip to content

Commit f032906

Browse files
committed
fix calculating rescale multiplier
1 parent 47014bc commit f032906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/jmc/models/Registry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private Transform getElemTrans(ModelElement element) {
137137
}
138138
float scale = 1;
139139
if (rot.rescale) {
140-
scale = (float) (0.5-Math.abs(Math.cos(Math.toRadians(2*rot.angle)))*0.5+1);
140+
scale = (float) (1f / Math.cos(Math.toRadians(Math.abs(rot.angle))));
141141
}
142142
switch (rot.axis) {
143143
case "x":

0 commit comments

Comments
 (0)