Package com.aparapi.examples.oopnbody
Class Body
java.lang.Object
com.aparapi.examples.oopnbody.Body
public final class Body extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Body(float x, float y, float z, float _m, boolean isHeavy)
-
Method Summary
Modifier and Type Method Description float
getM()
float
getPhi()
float
getRadius()
float
getTheta()
float
getVx()
float
getVy()
float
getVz()
float
getX()
float
getY()
float
getZ()
boolean
isHeavy()
void
setM(float _m)
void
setPhi(float phi)
void
setRadius(float radius)
void
setTheta(float theta)
void
setVx(float _vx)
void
setVy(float _vy)
void
setVz(float _vz)
void
setX(float _x)
void
setY(float _y)
void
setZ(float _z)
-
Field Details
-
Constructor Details
-
Body
public Body(float x, float y, float z, float _m, boolean isHeavy)
-
-
Method Details
-
isHeavy
public boolean isHeavy() -
getX
public float getX() -
getY
public float getY() -
getZ
public float getZ() -
getRadius
public float getRadius() -
getTheta
public float getTheta() -
getPhi
public float getPhi() -
getVx
public float getVx() -
getVy
public float getVy() -
getVz
public float getVz() -
getM
public float getM() -
setM
public void setM(float _m) -
setX
public void setX(float _x) -
setY
public void setY(float _y) -
setZ
public void setZ(float _z) -
setRadius
public void setRadius(float radius) -
setTheta
public void setTheta(float theta) -
setPhi
public void setPhi(float phi) -
setVx
public void setVx(float _vx) -
setVy
public void setVy(float _vy) -
setVz
public void setVz(float _vz)
-