All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cynosurex.game.PixelVelocity

java.lang.Object
   |
   +----java.awt.Point
           |
           +----cynosurex.game.PixelVelocity

public class PixelVelocity
extends Point
implements CommonInterface

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.


Constructor Index

 o PixelVelocity()
 o PixelVelocity(int, int)
 o PixelVelocity(PixelVelocity)

Constructors

 o PixelVelocity
 public PixelVelocity()
 o PixelVelocity
 public PixelVelocity(PixelVelocity velocity)
 o PixelVelocity
 public PixelVelocity(int velocity_x,
                      int velocity_y)

All Packages  Class Hierarchy  This Package  Previous  Next  Index