All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Point | +----cynosurex.game.PixelVelocity
This class specifies the velocity of an entity in pixels.
Velocity differs from speed in that speed is a scaler value without direction. Velocity is a vector value with direction.
Horizontal - positive value signifies the movement toward the right of the screen.
Vertical - positive value signifies the movement toward the bottom of the screen.
public PixelVelocity()
public PixelVelocity(PixelVelocity velocity)
public PixelVelocity(int velocity_x, int velocity_y)
All Packages Class Hierarchy This Package Previous Next Index