Skip to content

Commit

Permalink
document scratchVector, #217
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 4, 2023
1 parent 66e5f63 commit e9a052c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/common/model/NumericalEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { ObservableArray } from '../../../../axon/js/createObservableArray.js';
import Body from '../../../../solar-system-common/js/model/Body.js';
import Engine from '../../../../solar-system-common/js/model/Engine.js';

// Used when we want to avoid modifying a Vector (position, velocity, acceleration),
// and want to avoid allocating a new Vector copy.
const scratchVector = new Vector2( 0, 0 );

// constants for PEFRL algorithm
Expand Down

0 comments on commit e9a052c

Please sign in to comment.