Skip to content

Instantly share code, notes, and snippets.

@mmanishh
Created June 19, 2016 10:50
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/2c0b7ba31bac07da7e6c0f5d7beced9d to your computer and use it in GitHub Desktop.
Save mmanishh/2c0b7ba31bac07da7e6c0f5d7beced9d 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*ct.objMathHelper.Cos[t]*ct.objMathHelper.Cos[t]*ct.objMathHelper.Cos[t]*ct.objMathHelper.Cos[t]*ct.objMathHelper.Cos[t])
+ ct.objMathHelper.Cos[t]+ mCenter.x,
(radius*ct.objMathHelper.Sin[t]*ct.objMathHelper.Sin[t]*ct.objMathHelper.Sin[t]*ct.objMathHelper.Sin[t]*ct.objMathHelper.Sin[t])
-ct.objMathHelper.Sin[t]+ mCenter.y
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment