JavaScript is disabled on your browser.
Methods in au.edu.unsw.cse with parameters of type Point3d
Modifier and Type
Method
Description
Point3d
Point3d. add (Point3d x)
Point3d
Point3d. cross (Point3d x)
double
View3dInfo. depth (Point3d x)
double
Point3d. dot (Point3d x)
void
View3d. drawLine (Point3d p1,
Point3d p2)
Draw a 3D line.
void
View3d. drawString (java.lang.String s,
Point3d p1)
Place a string at a point in 3D space.
void
View3d. drawStringBelow (java.lang.String s,
Point3d p1)
Place a string below a point in 3D space.
static Quaternion
Quaternion. fromRotMatrix (Point3d u,
Point3d v,
Point3d w)
construct Quaternion from a rotation matrix expressed as a triple
of vectors, each one a row of the matrix.
boolean
View3dInfo. frontFace (Point3d normal,
Point3d p)
boolean
Edge3d. inside (Point3d x)
boolean
HalfSpace. inside (Point3d x)
boolean
Triangle3d. inside (Point3d x)
void
EdgeStack. put (Point3d a,
Point3d b)
void
PointStack. put (Point3d start,
Point3d end)
void
EdgeStack. putp (Point3d a,
Point3d b)
protected Point3d
GiftWrap. search2d (Point3d p)
void
View3dInfo. setCamera (Point3d dirn)
Calculate UVW coordinate system, given view direction, using default up
vector
void
View3dInfo. setCamera (Point3d dirn,
Point3d up)
Calculate UVW coordinate system, given view direction, and up vector
void
Object3d. setCentre (Point3d c)
void
Object3dAdaptor. setCentre (Point3d c)
void
Point3dObject3d. setCentre (Point3d c)
void
View3d. setLightDirection (Point3d dirn)
set direction of light source
void
QuadMesh3d. setPoints (Point3d [][] pts)
java.awt.Color
View3d. shade (int c1,
int c2,
Point3d n,
Point3d p)
compute shading colour
Point3d
Point3d. subtract (Point3d x)
java.awt.Point
View3d. toPoint (Point3d p)
double
HalfSpace. zint (Point3d p)
z coordinate of intersection of a vertical line through p and boundary plane
Constructors in au.edu.unsw.cse with parameters of type Point3d
Constructor
Description
Bezier3d (Point3d [][] ctl,
java.awt.Color ci,
java.awt.Color cj,
int steps)
Create a Bezier patch given 4x4 grid of controls
Colours are used for wireframe in s direction and t direction
Bezier is approximated by a steps x steps quad mesh
Bspline3d (Point3d [][] ctl,
java.awt.Color ci,
java.awt.Color cj,
int steps)
Create a Bspline patch given 4x4 grid of controls
Colours are used for wireframe in s direction and t direction
Bspline is approximated by a steps x steps quad mesh
Cube (Point3d centre)
Create a cube with centre at specified point and with same radius as last one
Cube (Point3d centre,
double radius)
Create a cube with centre at specified point and with given radius
Edge3d (Point3d start,
Point3d end)
Edge3d (Point3d start,
Point3d end,
int frameNo)
Edge3dPlus (Point3d a,
Point3d b,
int frameNo)
HalfSpace (Point3d a,
Point3d b)
Create a half space parallel to z axis
HalfSpace (Point3d a,
Point3d b,
Point3d c)
Create a half space
Point3dObject3d (Point3d p)
Point3dObject3d (Point3d p,
int frame)
Polygon3d (Point3d [] pol,
java.awt.Color col)
Create a polygon with given colour
QuadMesh3d (Point3d [][] pts)
Create a Quad mesh, given controls
Quaternion (Point3d axis,
double theta)
Create a unit quaternion that represents the rotation about axis
by theta
Site3d (Point3d pt)
Site3d (Point3d pt,
int frameNo)
Triangle3d (Point3d [] tri,
int col)
Create a triangle with given colour
Triangle3d (Point3d a,
Point3d b,
Point3d c,
int frameNo)
Triangle3dPlus (Point3d a,
Point3d b,
Point3d c,
int frameNo)
View3d (Point3d dirn)
Creates a 3D view given a graphics object to draw in, a viewport
within that graphics object, and a background colour
View3dInfo (Point3d dirn)
View3dInfo (Point3d dirn,
boolean persp)
View3dInfo (Point3d dirn,
Point3d up)
View3dInfo (Point3d dirn,
Point3d up,
boolean persp)
View3dInfo (Point3d dirn,
Point3d up,
double dinverse)
View3dInfo (Point3d dirn,
Point3d up,
double dinverse,
double wx,
double wy,
double wwidth,
double wheight)