Home | History | Annotate | Download | only in math

Lines Matching refs:direction

44  * <code>Ray</code> defines a line segment which has an origin and a direction.
46 * defined by the following equation: R(t) = origin + t*direction for t >= 0.
61 * The direction of the ray.
63 public Vector3f direction = new Vector3f(0, 0, 1);
70 * origin is (0,0,0) and the direction is (0,0,1).
78 * direction are given.
80 * @param direction the direction the ray travels in.
82 public Ray(Vector3f origin, Vector3f direction) {
84 setDirection(direction);
214 float dirDotNorm = direction.dot(norm);
227 float dirDotDiffxEdge2 = sign * direction.dot(diff.cross(edge2, edge2));
230 * direction.dot(edge1.crossLocal(diff));
249 store.set(origin).addLocal(direction.x * t,
250 direction.y * t, direction.z * t);
284 float dirDotNorm = direction.x * normX + direction.y * normY + direction.z * normZ;
305 float dirDotDiffxEdge2 = sign * (direction.x * diffEdge2X
306 + direction.y * diffEdge2Y
307 + direction.z * diffEdge2Z);
314 float dirDotEdge1xDiff = sign * (direction.x * diffEdge2X
315 + direction.y * diffEdge2Y
316 + direction.z * diffEdge2Z);
369 float denominator = p.getNormal().dot(direction);
380 loc.set(direction).multLocal(ratio).addLocal(origin);
396 Vector3f point = new Vector3f(direction).multLocal(d).addLocal(origin);
411 float rayParam = direction.dot(tempVa);
413 origin.add(direction.mult(rayParam, tempVb), tempVb);
466 * <code>getDirection</code> retrieves the direction vector of the ray.
467 * @return the direction of the ray.
470 return direction;
475 * <code>setDirection</code> sets the direction vector of the ray.
476 * @param direction the direction of the ray.
478 public void setDirection(Vector3f direction) {
479 assert direction.isUnitVector();
480 this.direction.set(direction);
491 direction.set(source.getDirection());
495 return getClass().getSimpleName() + " [Origin: " + origin + ", Direction: " + direction + "]";
501 capsule.write(direction, "direction", Vector3f.ZERO);
507 direction = (Vector3f) capsule.readSavable("direction", Vector3f.ZERO.clone());
514 r.direction = direction.clone();