Jeremy Zheng 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây
..
js 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây
src 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây
vendor 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây
Gruntfile.js 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây
index.html 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây
package.json 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây
readme.md 7770367ff5 :truck: move background source codes into api-v8 1 năm trước cách đây

readme.md

#Planet positions

Computes planet positions, plus the Earth's Moon, on any given UTC time.

##Usage

Include planet-positions.js (or planet-positions.min.js), then call

var planets = window.lagrange.planet_positions.getPositions(new Date());

An array of objects will be returned, one for each planet, with a Three.js Vector3 as the planet's position. If you also want to receive the planet's velocity as a Vector3, specify a second parameter set to true.

{
	name: 'earth',
	position: Three.Vector3,
	velocity: Three.Vector3
}

Credits

More details on La Grange's blog at http://lab.la-grange.ca/en/jsorrery