Package com.tom_roush.pdfbox.util
Class Vector
- java.lang.Object
-
- com.tom_roush.pdfbox.util.Vector
-
public final class Vector extends Object
A 2D vector.
-
-
Constructor Summary
Constructors Constructor Description Vector(float x, float y)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetX()Returns the x magnitude.floatgetY()Returns the y magnitude.Vectorscale(float sxy)Returns a new vector scaled by both x and y.StringtoString()
-