Vector3d
defines a Vector for a three double value tuple. Vector3d
can represent any three dimensional value, such as a vertex or normal. The functional methods like add, sub, multiply that returns new instances, and left this
unchanged. Static methods store the resulting vector on a existing reference, which avoid allowcation an can improove performances around 20% (profiling performend on vector addition). Deprecated methods will be removed on October 2010
@author Morten Silcowitz
@author Pierre Labatut
All modifiers support method chaining, e.g. Vector3 result = new Vector3(2.0, 99.0, 0.0).setY(1.0).addZ(1.0).scaleX(0.5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|