- peek() - Method in class graphicslib3D.MatrixStack
-
Returns a copy of the
Matrix3D
at the top of the stack without
affecting the stack.
- pivot(Vector3D, Point3D) - Method in class graphicslib3D.Quaternion
-
Pivot a vector about a point using the rotation defined by this quaternion.
- pivot(Point3D, Point3D) - Method in class graphicslib3D.Quaternion
-
Overload of pivot(Vector3D, Point3D).
- Point3D - Class in graphicslib3D
-
Defines a three-dimensional homogeneous point.
- Point3D() - Constructor for class graphicslib3D.Point3D
-
Creates a new Point3D with defaults of
X,Y,Z = 0.0 and W = 1.0.
- Point3D(double, double, double) - Constructor for class graphicslib3D.Point3D
-
Creates a new Point3D given three coordinates.
- Point3D(double, double, double, double) - Constructor for class graphicslib3D.Point3D
-
Creates a new Point3D given three coordinates and a W value.
- Point3D(float[]) - Constructor for class graphicslib3D.Point3D
-
Creates a new Point3D whose values are taken from the specified array of floats.
- Point3D(double[]) - Constructor for class graphicslib3D.Point3D
-
Creates a new Point3D whose values are taken from the specified array of doubles.
- Point3D(Vector3D) - Constructor for class graphicslib3D.Point3D
-
Constructs a new Point3D implied by the specified
Vector3D
; that is, considers
the specified
Vector3D
as a vector from the origin to the point specified by the
head of the vector, and constructs a Point3D containing the same X,Y,Z values as the
Vector3D
.
- popMatrix() - Method in class graphicslib3D.MatrixStack
-
Pops the top element off the stack and discards it, or throws a
RuntimeException
if the stack is empty.
- PositionalLight - Class in graphicslib3D.light
-
This class represents a <@link Light> which is positional; that is,
a light which has a given position in (some) coordinate system.
- PositionalLight() - Constructor for class graphicslib3D.light.PositionalLight
-
Constructs a
PositionalLight
with default position = [0,0,1],
default attenuation values constAtt=1.0, linearAtt=0.0, and quadraticAtt=0.0,
and with other attribute values as defined by the no-argument constructor
of superclass
Light
.
- printProgramLog(int) - Static method in class graphicslib3D.GLSLUtils
-
Fetches and prints the Program Information Log for the GLSL shader program
specified by parameter "program", which must be a legal GLSL program object ID.
- printShaderLog(int) - Static method in class graphicslib3D.GLSLUtils
-
Fetches and prints the Shader Information Log for the GLSL shader
specified by parameter "shader", which must be a legal shader object ID.
- printShaderSource(String[]) - Static method in class graphicslib3D.GLSLUtils
-
Prints the set of lines contained in the specified array, which is
assumed to be a GLSL shader program with each line terminated with
an appropriate line terminator.
- pushMatrix() - Method in class graphicslib3D.MatrixStack
-
Makes a copy of the
Matrix3D
currently at the top of the stack
and pushes that copy onto the stack (i.e., duplicates the top of the stack).