Mikael
2003-11-10 20:25:40 UTC
Hi!
Why do I get the following error messages:
'.class' expected
trans.setTranslate(double x, double y, double z);
*
')' expected
trans.setTranslate(double x, double y, double z);
*
The method looks like this:
public void translate (double x, double y, double z, byte
transformationMode)
{
CG1Matrix4x4 trans = new CG1Matrix4x4();
trans.setTranslate (double x, double y, double z);
transformationMode=0;
switch (transformationMode){
case 0: modelMatrixPoint.multLeft(trans); break;
case 1: modelMatrixPoint.multRight(trans);break;
case 2: modelMatrixPoint.multLeft(trans); break;
}
Danke!
Why do I get the following error messages:
'.class' expected
trans.setTranslate(double x, double y, double z);
*
')' expected
trans.setTranslate(double x, double y, double z);
*
The method looks like this:
public void translate (double x, double y, double z, byte
transformationMode)
{
CG1Matrix4x4 trans = new CG1Matrix4x4();
trans.setTranslate (double x, double y, double z);
transformationMode=0;
switch (transformationMode){
case 0: modelMatrixPoint.multLeft(trans); break;
case 1: modelMatrixPoint.multRight(trans);break;
case 2: modelMatrixPoint.multLeft(trans); break;
}
Danke!