minor tweak for clarity

This commit is contained in:
benfry
2008-09-22 02:44:11 +00:00
parent 20f3ca6685
commit 594f756b92
3 changed files with 8 additions and 3 deletions
+5 -1
View File
@@ -83,7 +83,11 @@ public class BaseObject extends PShape {
String transformStr = properties.getStringAttribute("transform");
if (transformStr != null) {
float[] t = parseMatrix(transformStr);
matrix = new PMatrix3D(t[0], t[1], t[2], t[3], t[4], t[5]);
//matrix = new PMatrix2D(t[0], t[1], t[2], t[3], t[4], t[5]);
matrix = new PMatrix3D(t[0], t[2], 0, t[4],
t[1], t[3], 0, t[5],
0, 0, 1, 0,
0, 0, 0, 1);
}
parseColors(properties);
+2 -2
View File
@@ -11,8 +11,8 @@ public class Circle extends BaseObject {
super(parent, properties);
this.x = properties.getFloatAttribute("cx");
this.y = properties.getFloatAttribute("cy");
float radius = properties.getFloatAttribute("r") * 2;
width = height = radius;
float radius = properties.getFloatAttribute("r");
width = height = radius * 2;
}
+1
View File
@@ -190,6 +190,7 @@ public class SVG extends BaseObject {
}
//root = new Group(null, svg);
parseGroup(svg); // ?
}