| Modifier and Type | Method and Description |
|---|---|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.cross(StdDraw3D.Vector3D that)
Returns the cross product of this vector with that vector.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.direction()
Returns the unit vector in the direction of this vector.
|
static StdDraw3D.Vector3D |
StdDraw3D.getCameraDirection() |
static StdDraw3D.Vector3D |
StdDraw3D.getCameraOrientation() |
static StdDraw3D.Vector3D |
StdDraw3D.getCameraPosition() |
static StdDraw3D.Vector3D |
StdDraw3D.getOrbitCenter() |
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.minus(double x,
double y,
double z) |
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.minus(StdDraw3D.Vector3D that)
Returns the difference of this and that vector.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.plus(double x,
double y,
double z) |
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.plus(StdDraw3D.Vector3D that)
Returns the sum of this and that vector.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.proj(StdDraw3D.Vector3D line)
Returns the projection of this onto the given line.
|
static StdDraw3D.Vector3D |
StdDraw3D.randomDirection()
Returns a randomly generated normalized Vector3D.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.reflect(StdDraw3D.Vector3D line)
Reflects this vector across the direction given by line.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.times(double k)
Returns the product of this vector and the scalar k.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.times(double a,
double b,
double c)
Returns the result (this.x * a, this.y * b, this.z * c).
|
| Modifier and Type | Method and Description |
|---|---|
double |
StdDraw3D.Vector3D.angle(StdDraw3D.Vector3D that)
Returns the smallest angle between this and that vector, in DEGREES.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.cross(StdDraw3D.Vector3D that)
Returns the cross product of this vector with that vector.
|
static StdDraw3D.Light |
StdDraw3D.directionalLight(StdDraw3D.Vector3D dir,
Color col)
Adds a directional light of color col which appears to come from (x, y, z).
|
double |
StdDraw3D.Vector3D.distanceTo(StdDraw3D.Vector3D that)
Returns the Euclidian distance between this and that.
|
double |
StdDraw3D.Vector3D.dot(StdDraw3D.Vector3D that)
Returns the dot product of this and that.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.minus(StdDraw3D.Vector3D that)
Returns the difference of this and that vector.
|
void |
StdDraw3D.Camera.moveRelative(StdDraw3D.Vector3D move) |
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.plus(StdDraw3D.Vector3D that)
Returns the sum of this and that vector.
|
static StdDraw3D.Light |
StdDraw3D.pointLight(StdDraw3D.Vector3D origin,
Color col) |
static StdDraw3D.Light |
StdDraw3D.pointLight(StdDraw3D.Vector3D origin,
Color col,
double power) |
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.proj(StdDraw3D.Vector3D line)
Returns the projection of this onto the given line.
|
StdDraw3D.Vector3D |
StdDraw3D.Vector3D.reflect(StdDraw3D.Vector3D line)
Reflects this vector across the direction given by line.
|
void |
StdDraw3D.Camera.rotateFPS(StdDraw3D.Vector3D angles) |
static void |
StdDraw3D.setCamera(StdDraw3D.Vector3D position,
StdDraw3D.Vector3D angles) |
static void |
StdDraw3D.setCameraDirection(StdDraw3D.Vector3D direction) |
static void |
StdDraw3D.setCameraOrientation(StdDraw3D.Vector3D angles) |
static void |
StdDraw3D.setCameraPosition(StdDraw3D.Vector3D position) |
static void |
StdDraw3D.setOrbitCenter(StdDraw3D.Vector3D v)
Sets the center of rotation for the camera mode ORBIT_MODE.
|
Copyright © 2015. All Rights Reserved.