Skip to content

Instantly share code, notes, and snippets.

@mmanishh
Created June 19, 2016 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmanishh/afb0ed12a17c49d94640ecce64db8247 to your computer and use it in GitHub Desktop.
Save mmanishh/afb0ed12a17c49d94640ecce64db8247 to your computer and use it in GitHub Desktop.
public PointF calcNextPoint(float theta) {
int t = (int) (theta * 1000);
float temp = (radius * ct.objMathHelper.Sin[t]);
return
new PointF(radius*(3*ct.objMathHelper.Sin[t]-4*ct.objMathHelper.Sin[t]*ct.objMathHelper.Sin[t]*ct.objMathHelper.Sin[t])+mCenter.x
,radius*0.6f*ct.objMathHelper.Cos[t]+mCenter.y
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment