@Service
public class SimpleVector3DFactory
extends java.lang.Object
Constructor and Description |
---|
SimpleVector3DFactory() |
SimpleVector3DFactory(Vector.Vector3DType myVectorType) |
Modifier and Type | Method and Description |
---|---|
Vector |
create(double[] d)
use an double array with 3 elements to create a 3D vector
|
Vector |
create(double x,
double y,
double z)
create a 3D vector from its coordinates
|
void |
setMyVectorType(Vector.Vector3DType myVectorType)
set the value of myVectorType
|
public SimpleVector3DFactory()
public SimpleVector3DFactory(Vector.Vector3DType myVectorType)
public Vector create(double x, double y, double z)
x
- - x coordinate valuey
- -y coordinate valuez
- - z coordinate valueVector
public Vector create(double[] d)
d
- - an double array with 3 elementsVector
@Value(value="${yoink.job.myvectortype}") public void setMyVectorType(Vector.Vector3DType myVectorType)
myVectorType
- Vector.Vector3DType