phetsims / dot

A math library with a focus on mutable and immutable linear algebra for 2D and 3D applications.
MIT License
13 stars 6 forks source link

add distance to vectors #1

Closed pixelzoom closed 11 years ago

pixelzoom commented 11 years ago

Add convenience method for determining the distance between the tips of 2 vectors. Important because PhET uses vectors for points. Essentially abs(vector1-vector2).

jonathanolson commented 11 years ago

Added distance and distanceSquared. See https://github.com/phetsims/dot/commit/a4d399b639faab004c10053ea7417a81326ecf11