|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProjection
Interface for things mapping sim coordinates to screen coordinates
Method Summary | |
---|---|
int |
getScreenComp(int i,
double[] arrLfState,
int nIdxOff)
Finds the ith component in screen coordinates of a vector indicated by the portion of the array arrLfState starting at nIdxOff; |
int |
height()
|
int |
left()
|
void |
resize(int nNewWidth,
int nNewHeight)
|
void |
scaleProjection(int nNewX,
int nNewY)
|
int |
scaleRadius(double lfRad)
Simple scale function for 2d circles etc. |
int[] |
scaleVector(double[] arrLfVec,
int nIdxOff)
Scales (possibly including rotation and flip) a vector, without applying global translation |
int |
top()
|
int |
width()
|
void |
xlateProjection(int nXOff,
int nYOff)
|
Method Detail |
---|
int getScreenComp(int i, double[] arrLfState, int nIdxOff)
i
- which component of screen coordinates to get (0=x, 1=y)arrLfState
- global state vector in sim coordinatesnIdxOff
- offset index in arrLfState of the coord we're looking
for
int[] scaleVector(double[] arrLfVec, int nIdxOff)
arrLfVec
- array containing vector to scale (transform)nIdxOff
- offset of begining of vector to scale in
arrLfVec
int scaleRadius(double lfRad) throws java.lang.Exception
java.lang.Exception
int width()
int height()
int top()
int left()
void scaleProjection(int nNewX, int nNewY)
void xlateProjection(int nXOff, int nYOff)
void resize(int nNewWidth, int nNewHeight)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |