Lines Matching refs:direction
42 * two points. The two points of the line are defined as the origin and direction.
52 private Vector3f direction;
56 * direction are set to defaults (0,0,0).
61 direction = new Vector3f();
66 * and direction are set via the parameters.
68 * @param direction the direction of the line.
70 public Line(Vector3f origin, Vector3f direction) {
72 this.direction = direction;
95 * <code>getDirection</code> returns the direction of the line.
96 * @return the direction of the line.
99 return direction;
104 * <code>setDirection</code> sets the direction of the line.
105 * @param direction the direction of the line.
107 public void setDirection(Vector3f direction) {
108 this.direction = direction;
118 float lineParameter = direction.dot(compVec1);
119 origin.add(direction.mult(lineParameter, compVec2), compVec2);
171 //find the smallest eigen vector for the direction vector
183 direction = compEigen1.getEigenVector(0);
209 result.x = (origin.x * (1 - rand)) + (direction.x * rand);
210 result.y = (origin.y * (1 - rand)) + (direction.y * rand);
211 result.z = (origin.z * (1 - rand)) + (direction.z * rand);
219 capsule.write(direction, "direction", Vector3f.ZERO);
225 direction = (Vector3f) capsule.readSavable("direction", Vector3f.ZERO.clone());
232 line.direction = direction.clone();