diff options
Diffstat (limited to 'src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java')
-rwxr-xr-x | src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java b/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java new file mode 100755 index 0000000..19e5fb7 --- /dev/null +++ b/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPoint.java @@ -0,0 +1,44 @@ +/*
+ * SVGPoint.java
+ *
+ * Created on April 12, 2007, 5:53 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package com.kitfox.salamander.svg.coordSystems;
+
+import com.kitfox.salamander.svg.basic.SVGDataType;
+
+/**
+ *
+ * Many of the SVG DOM interfaces refer to objects of class SVGPoint. An SVGPoint is an (x,y) coordinate pair. When used in matrix operations, an SVGPoint is treated as a vector of the form:
+ *
+ * <code>
+ * [x]
+ * [y]
+ * [1]
+ * </code>
+ * @author kitfox
+ */
+public interface SVGPoint extends SVGDataType
+{
+ /**
+ * The x coordinate.
+ */
+ public float getX();
+ /**
+ * The y coordinate.
+ */
+ public float getY();
+
+ /**
+ * Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object:
+ *
+ * <CODE>newpoint = matrix * thispoint</CODE>
+ * @param matrix The matrix which is to be applied to this SVGPoint object.
+ * @return A new SVGPoint object.
+ */
+ public SVGPoint matrixTransform(SVGMatrix matrix);
+}
|