public final class Vector extends Object
| Constructor and Description |
|---|
Vector(float x,
float y) |
| Modifier and Type | Method and 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.
|
String |
toString() |
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.