Added Vector2D.toVector(double y).

This commit is contained in:
TomyLobo 2012-01-03 14:11:55 +01:00
parent 7c71617dbf
commit eafde8cc49

View File

@ -575,6 +575,15 @@ public class Vector2D {
return new Vector(x, 0, z);
}
/**
* Creates a 3D vector by adding the specified Y component to this vector.
*
* @return Vector
*/
public Vector toVector(double y) {
return new Vector(x, y, z);
}
/**
* Gets the minimum components of two vectors.
*