Package org.apache.pdfbox.util
Class Vector
- java.lang.Object
-
- org.apache.pdfbox.util.Vector
-
public final class Vector extends java.lang.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 float
getX()
Returns the x magnitude.float
getY()
Returns the y magnitude.Vector
scale(float sxy)
Returns a new vector scaled by both x and y.java.lang.String
toString()
-
-
-
Method Detail
-
getX
public float getX()
Returns the x magnitude.
-
getY
public float getY()
Returns the y magnitude.
-
scale
public Vector scale(float sxy)
Returns a new vector scaled by both x and y.- Parameters:
sxy
- x and y scale
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-