Posted By: Carlos3DGS
square roots and cube roots? - 10/15/11 11:50
ok so I found a function for the square root "sqrt(x)" usefull for calculating stuff with circles. But what if I want to use the cube root(3)? (for spheres)
So far I'm using these two function for circles:
I cant seem to find a function to do cube roots (3) for spheres. Anyone know of such a function in 3dgs? If not... Anyone know how I could implement it?
So far I'm using these two function for circles:
Code:
var Area(var radius)
{
return(pi*radius*radius);
}
var Radius(var area)
{
return(sqrt(area/pi));
}
I cant seem to find a function to do cube roots (3) for spheres. Anyone know of such a function in 3dgs? If not... Anyone know how I could implement it?