2dgeometry 中文文档教程
2dgeometry
二维几何的一些函数。
Vector / Point
例子:
var position = new Point(0, 0);
var velocity = new Vector(0, 0);
var 加速度 = 新向量 (1, 0);
velocity = velocity.add(加速度);
position = position.add(速度);
2dgeometry
Some functions for 2d geometry.
Vector / Point
Example:
var position = new Point(0, 0);
var velocity = new Vector(0, 0);
var acceleration = new Vector(1, 0);
velocity = velocity.add(acceleration);
position = position.add(velocity);