public class Velocity extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
vx |
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
vy |
| Constructor and Description |
|---|
Velocity() |
Velocity(double vx,
double vy) |
Velocity(double speed,
double direction,
boolean flag) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double dvx,
double dvy) |
double |
getDirection() |
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
double |
getSpeed() |
double |
getVX() |
double |
getVY() |
void |
setDirection(double direction) |
void |
setSpeed(double speed) |
void |
setVX(double vx) |
void |
setVXY(double vx,
double vy) |
void |
setVY(double vy) |
java.lang.String |
toString() |
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
vxProperty() |
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
vyProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.Double> vxProperty
public javafx.beans.property.SimpleObjectProperty<java.lang.Double> vyProperty
public Velocity()
public Velocity(double vx,
double vy)
public Velocity(double speed,
double direction,
boolean flag)
public void setSpeed(double speed)
public void setDirection(double direction)
public double getSpeed()
public double getDirection()
public javafx.beans.property.SimpleObjectProperty<java.lang.Double> vxProperty()
public double getVX()
public void setVX(double vx)
public javafx.beans.property.SimpleObjectProperty<java.lang.Double> vyProperty()
public double getVY()
public void setVY(double vy)
public void setVXY(double vx,
double vy)
public void add(double dvx,
double dvy)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponent