T
- A phantom type parameterPVectorReadable2DType<T>
, VectorReadable2DType
, PVectorStorageFloating2Type<T>
, VectorStorageFloating2Type
, VectorStorageType
public final class PVectorMutable2D<T> extends Object implements PVectorStorageFloating2Type<T>
Constructor | Description |
---|---|
PVectorMutable2D() |
Create a new vector.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
void |
setX(double in_x) |
Set the
x component. |
void |
setY(double in_y) |
Set the
Y component. |
String |
toString() |
|
double |
x() |
|
double |
y() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setPVector2D, setPVector2F
setVector2D, setVector2F, setXY
public double x()
x
in interface VectorReadable2DType
x
componentpublic double y()
y
in interface VectorReadable2DType
y
componentpublic void setX(double in_x)
VectorStorageFloating2Type
x
component.setX
in interface VectorStorageFloating2Type
in_x
- The X componentpublic void setY(double in_y)
VectorStorageFloating2Type
Y
component.setY
in interface VectorStorageFloating2Type
in_y
- The Y componentCopyright © 2017 <code@io7m.com> http://io7m.com