Package com.illumon.iris.db.plot.util
Class ShapeUtils
java.lang.Object
com.illumon.iris.db.plot.util.ShapeUtils
- All Implemented Interfaces:
Serializable
public class ShapeUtils extends Object implements Serializable
Utilities for
Shape
.- See Also:
- Serialized Form
-
Method Details
-
resize
Scales a shape by multiplying x and y coordinates byfactor
.- Parameters:
s
- shapefactor
- size factor- Returns:
- new shape equal to
s
resized byfactor
-
rotate
Rotates a shape by multiplying x and y coordinates byangle
radians.- Parameters:
s
- shapeangle
- angle in radians- Returns:
- new shape equal to
s
rotated byangle
-