MovingBlocks / TeraMath

Experimental standalone math and stuff. Automation category: Terasology Library
Apache License 2.0
13 stars 11 forks source link

Add add/sub/scale to ImmutableVector #21

Closed msteiger closed 9 years ago

msteiger commented 10 years ago

Example: ImmutableVector2i

public ImmutableVector2i add(int valueX, int valueY);
public ImmutableVector2i add(BaseVector2i other);

public ImmutableVector2i sub(int valueX, int valueY);
public ImmutableVector2i sub(BaseVector2i other);

public ImmutableVector2i scale(int value);
msteiger commented 10 years ago

Also adds support for dot product computation to BaseVector