Re: Math.cos() problems
- From: "Richard F.L.R.Snashall" <rflrs@xxxxxxxxxxxxx>
- Date: Sat, 08 Dec 2007 11:54:26 -0500
Brandon McCombs wrote:
I'm trying to do something simple but Java turns it into a federal case. All I want to do is draw a couple circles on a Graphics2D canvas with one movable and attracted to the 2nd one which is stationary. Basically I'm just trying to get basic functionality working that simulates gravitational attraction between the spheres.
If you are doing this for one body, RELATIVE to a given one, after
you took the sine and cosine, did you add back the screen coordinates
of the given body to get the screen coordinates of the one you want?
.
- References:
- Math.cos() problems
- From: Brandon McCombs
- Math.cos() problems
- Prev by Date: Inheritance and stuff
- Next by Date: Re: Inheritance and stuff
- Previous by thread: Re: Math.cos() problems
- Next by thread: Reg expression matching issue
- Index(es):