Skip to content

Instantly share code, notes, and snippets.

@matarillo
Created November 1, 2009 09:26
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 matarillo/223450 to your computer and use it in GitHub Desktop.
Save matarillo/223450 to your computer and use it in GitHub Desktop.
public class Node
{
public void MoveEular(double dt, Vector f)
{
// 質量は1とする
this.R = new Vector()
{
X = this.R.X + dt * this.V.X,
Y = this.R.Y + dt * this.V.Y
};
this.V = new Vector()
{
X = this.V.X + dt * f.X,
Y = this.V.Y + dt * f.Y
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment