Created
November 1, 2009 09:26
-
-
Save matarillo/223450 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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