|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Vector3D | |
y25.graphics | Linear algebra classes and utilities for the three dimensional space. |
y25.view.realizer | Implementations of realizers. |
Uses of Vector3D in y25.graphics |
Methods in y25.graphics that return Vector3D | |
Vector3D |
Vector3D.set(float xx,
float yy,
float zz)
Sets this vector to point in the given direction. |
Vector3D |
Vector3D.set(Vector3D v)
Sets this vector to point in the same direction as the passed vector. |
Vector3D |
Vector3D.set(Point3D p)
Interprets the passed point as a vector and sets this vector accordingly.. |
Vector3D |
Vector3D.set(Point3D from,
Point3D to)
Sets this vector to point from from to to . |
Vector3D |
Vector3D.normalize()
Normalizes this vector. |
Vector3D |
Vector3D.getNormalized()
Normalizes a copy of this vector and returns the copy. |
Vector3D |
Vector3D.cross(Vector3D v)
Computes the cross product of this vector with the passed one and stores the result in this vector. |
Vector3D |
Vector3D.getCrossed(Vector3D v)
Computes the cross product of this vector with the passed one and returns the result. |
Vector3D |
Vector3D.reverse()
Reverses the direction of this vector. |
Vector3D |
Vector3D.getReversed()
Reverses a copy of this vector and returns the copy. |
Vector3D |
Vector3D.scale(float s)
Scales this vector by the given scaling factor. |
Vector3D |
Vector3D.getScaled(float s)
Scales a copy of this vector by the given scaling factor and returns the copy. |
Vector3D |
Vector3D.add(Vector3D v)
Adds the given vector to this one. |
Vector3D |
Vector3D.getAdded(Vector3D a)
Adds the given vector to a copy of this one and returns the copy. |
Vector3D |
Vector3D.subtract(Vector3D v)
Subtracts the given vector from this one. |
Vector3D |
Vector3D.getSubtracted(Vector3D a)
Subtracts the given vector from a copy of this one and returns the copy. |
Vector3D |
Vector3D.getOrthogonal()
Returns a vector that is orthogonal to this one. |
Vector3D |
Transform.apply(Vector3D v)
Applies this transform to the passed vector and returns a reference to that vector. |
Vector3D |
Transform.getApplied(Vector3D v)
Applies this transform to the passed vector and returns a reference to that vector. |
Vector3D |
Point3D.getVector3D()
Returns a Vector3D with the same x,y,z entries as this
point. |
Vector3D |
Camera.toCamera(GLAutoDrawable drawable,
Point3D from)
Returns a vector that points to the camera. |
Vector3D |
Camera.getViewDirection()
Returns the view direction of the camera. |
Vector3D |
Camera.getUpDirection()
Returns the vector in three dimensional space that corresponds to the upward direction in the viewing plane. |
Methods in y25.graphics with parameters of type Vector3D | |
Vector3D |
Vector3D.set(Vector3D v)
Sets this vector to point in the same direction as the passed vector. |
Vector3D |
Vector3D.cross(Vector3D v)
Computes the cross product of this vector with the passed one and stores the result in this vector. |
Vector3D |
Vector3D.getCrossed(Vector3D v)
Computes the cross product of this vector with the passed one and returns the result. |
Vector3D |
Vector3D.add(Vector3D v)
Adds the given vector to this one. |
Vector3D |
Vector3D.getAdded(Vector3D a)
Adds the given vector to a copy of this one and returns the copy. |
Vector3D |
Vector3D.subtract(Vector3D v)
Subtracts the given vector from this one. |
Vector3D |
Vector3D.getSubtracted(Vector3D a)
Subtracts the given vector from a copy of this one and returns the copy. |
float |
Vector3D.dot(Vector3D v)
Computes the dot product of this vector and the passed one. |
static Transform |
Transform.translate(Vector3D delta)
Creates a transform, that, when applied, performs a translation by the given vector. |
static Transform |
Transform.rotate(Vector3D axis,
float angle)
Creates a transform, that, when applied, performs a counter-clockwise rotation around the given vector. |
static Transform |
Transform.lookAt(Point3D pos,
Point3D look,
Vector3D up)
Creates a transform that can be used as a viewing transform that has the same effect as the OpenGL gluLookAt() routine. |
Vector3D |
Transform.apply(Vector3D v)
Applies this transform to the passed vector and returns a reference to that vector. |
Vector3D |
Transform.getApplied(Vector3D v)
Applies this transform to the passed vector and returns a reference to that vector. |
Point3D |
Point3D.set(Vector3D v)
Sets this point to the same coordinates as the passed vector and returns a reference to this point. |
Point3D |
Point3D.translate(Vector3D v)
Translates this point by the given vector. |
Point3D |
Point3D.getTranslated(Vector3D v)
Creates a copy of this point, translates it by the given vector and returns the copy. |
static void |
Graphics3D.drawCylinder(GLAutoDrawable drawable,
Vector3D fromDir,
Point3D from,
Point3D to,
Vector3D toDir,
float radius,
int sides,
boolean capped)
Draws a cylinder with a tilted top and bottom. |
static Point3D |
Graphics3D.project(Point3D p,
Vector3D dir,
Point3D origin,
Vector3D normal)
Projects a point p along the direction dir
onto the plane that is defined by (origin ,normal ). |
BoundingBox |
BoundingBox.translate(Vector3D v)
Moves the entire bounding box by the given vector. |
Constructors in y25.graphics with parameters of type Vector3D | |
Vector3D(Vector3D v)
Creates a vector that points in the same direction as the passed vector. |
|
Point3D(Vector3D v)
Creates a point by interpreting the passed vector as a position vector. |
Uses of Vector3D in y25.view.realizer |
Methods in y25.view.realizer with parameters of type Vector3D | |
static void |
ArrowPainter.paintGL(GLAutoDrawable drawable,
Camera camera,
Arrow arrow,
Point3D tip,
Vector3D tipToBase,
float radius)
Paints the given arrow into the given OpenGL context. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |