|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HavingVelocity extends HavingCenter
Item which has a velocity: the first derivative of the center vector by time.
In other words, in additional to 3 numbers HavingCenter
interface,
this interface also specifies 3 numbers
AlgART Laboratory 2010
Modifier and Type | Method and Description |
---|---|
double |
getVelocityX()
Returns x-component of the velocity of the item's center. |
double |
getVelocityY()
Returns y-component of the velocity of the item's center. |
double |
getVelocityZ()
Returns z-component of the velocity of the item's center. |
void |
setVelocity(double velocityX,
double velocityY,
double velocityZ)
Sets all components of the velocity of the item's center. |
void |
setVelocityX(double velocityX)
Sets x-component of the velocity of the item's center. |
void |
setVelocityY(double velocityY)
Sets y-component of the velocity of the item's center. |
void |
setVelocityZ(double velocityZ)
Sets z-component of the velocity of the item's center. |
Methods inherited from interface net.algart.model3d.common.movement.model.HavingCenter |
---|
getCenterX, getCenterY, getCenterZ, isInfinite, isNaN, setCenter, setCenterX, setCenterY, setCenterZ, squareOfDistance |
Method Detail |
---|
double getVelocityX()
double getVelocityY()
double getVelocityZ()
void setVelocityX(double velocityX)
velocityX
- new x-component of the new velocity of the item's center.void setVelocityY(double velocityY)
velocityY
- new y-component of the new velocity of the item's center.void setVelocityZ(double velocityZ)
velocityZ
- new z-component of the new velocity of the item's center.void setVelocity(double velocityX, double velocityY, double velocityZ)
velocityX
- new x-component of the new velocity of the item's center.velocityY
- new y-component of the new velocity of the item's center.velocityZ
- new z-component of the new velocity of the item's center.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |