|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.math.geom.Point2
es.ucm.look.ar.math.geom.Point3
public class Point3
Represents a 3D point
Field Summary | |
---|---|
float |
z
z coordinate |
Fields inherited from class es.ucm.look.ar.math.geom.Point2 |
---|
x, y |
Constructor Summary | |
---|---|
Point3(float x,
float y,
float z)
Constructs a 3D point |
|
Point3(Point3 p)
|
Method Summary | |
---|---|
void |
add(float x,
float y,
float z)
Adds given coordinates to 3D point coordinates |
void |
add(Point3 p)
Adds the point's coordinates |
float[] |
array()
Returns a three dimension array with the coordinates |
float[] |
getCoordinatesArray()
Returns an array with the point's coordinates |
static Point3 |
getVolatilePoint(float x,
float y,
float z)
|
void |
inverseScale(Point3 scale)
Scales the point, dividing the current coordinates with the given scale |
void |
scale(Point3 scale)
Scales the point, multiplying the current coordinates with the given scale |
void |
set(float[] floatArray)
|
void |
set(float x,
float y,
float z)
Sets point coordinates |
void |
set(Point3 p)
Copies the coordinates of the given point |
void |
subtract(Point3 p)
Subtracts the point's coordinates |
java.lang.String |
toString()
|
Methods inherited from class es.ucm.look.ar.math.geom.Point2 |
---|
add, add |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public float z
Constructor Detail |
---|
public Point3(float x, float y, float z)
x
- x coordinatey
- y coordinatez
- z coordinatepublic Point3(Point3 p)
Method Detail |
---|
public void add(float x, float y, float z)
x
- x coordinatey
- y coordinatez
- z coordinatepublic void add(Point3 p)
p
- the pointpublic float[] array()
public float[] getCoordinatesArray()
Point2
getCoordinatesArray
in class Point2
public static Point3 getVolatilePoint(float x, float y, float z)
public void inverseScale(Point3 scale)
scale
- the scalepublic void scale(Point3 scale)
scale
- the scalepublic void set(float[] floatArray)
public void set(float x, float y, float z)
x
- x coordinatey
- y coordinatez
- z coordinatepublic void set(Point3 p)
p
- the pointpublic void subtract(Point3 p)
p
- the pointpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |