Need Help.. vector3df with double/float parameter
Posted: Sun Nov 23, 2008 10:58 am
Hi, i need help with jirr. This my problem :
to use vector3df with float parameter u just neet to add 'f' right? like this :
vector3df(2.6f,3.2f,2.0f)
But what in the case, the parameter i want input is from another calculation, like :
x=Math.cos((180)*Math.PI/180));
y=Math.cos((180)*Math.PI/180));
z=Math.cos((180)*Math.PI/180));
in vector3df just i put the parameter like this :
vector3df(x,y,z)
But, it wont work!!! The java compiler say error about :
"cannot find symbol"
"symbol : constructor vector3df(double,double,double)"
"location : class net.sf.jirr.vector3df"
Anyone can help?
Thanks.
to use vector3df with float parameter u just neet to add 'f' right? like this :
vector3df(2.6f,3.2f,2.0f)
But what in the case, the parameter i want input is from another calculation, like :
x=Math.cos((180)*Math.PI/180));
y=Math.cos((180)*Math.PI/180));
z=Math.cos((180)*Math.PI/180));
in vector3df just i put the parameter like this :
vector3df(x,y,z)
But, it wont work!!! The java compiler say error about :
"cannot find symbol"
"symbol : constructor vector3df(double,double,double)"
"location : class net.sf.jirr.vector3df"
Anyone can help?
Thanks.