|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanar.Vertex
public class Vertex

This Class is non-Parametric class. It's used for common geometric operation. Mainly used for hard calculation, or tempoary calculation. Here, everything is public (x,y,z) (gll) Vertex Could not extends Pt beacause Pt extends Parametric
| Field Summary | |
|---|---|
float |
x
|
float |
y
|
float |
z
|
| Constructor Summary | |
|---|---|
Vertex(float x,
float y)
|
|
Vertex(float x,
float y,
float z)
If no value submitted, the point is randomly initialized. |
|
Vertex(XYZ p)
If no value submitted, the point is randomly initialized. |
|
| Method Summary | |
|---|---|
Vertex |
apply(Transform t)
|
Vertex |
calculate(PMatrix3D m)
Update the new values of the vertex with sent transformation (matrix). |
java.lang.Object |
clone()
|
Vertex |
cross(XYZ b)
|
static Vertex |
cross(XYZ a,
XYZ b)
|
XYZ |
divide(float k)
|
XYZ |
divide(float k,
float l)
|
XYZ |
divide(float k,
float l,
float m)
|
Vertex |
divide(Vertex p)
|
XYZ |
divide(XYZ p)
|
static Vertex |
divide(XYZ v1,
XYZ v2)
|
float |
dot(XYZ v)
|
static float |
dot(XYZ v0,
XYZ v1)
|
void |
draw()
|
boolean |
equalsPt(XYZ v)
|
Pt |
get()
|
float |
length()
|
float |
length(XYZ p)
|
float |
lengthNoSq()
|
float |
lengthNoSq(XYZ p)
|
float |
lengthSq()
|
float |
lengthSq(XYZ p)
|
XYZ |
minus(float k)
|
XYZ |
minus(float k,
float l)
|
XYZ |
minus(float k,
float l,
float m)
|
Vertex |
minus(Vertex p)
|
XYZ |
minus(XYZ p)
|
static Vertex |
minus(XYZ v1,
XYZ v2)
|
XYZ |
multiply(float k)
|
XYZ |
multiply(float k,
float l)
|
XYZ |
multiply(float k,
float l,
float m)
|
Vertex |
multiply(Vertex p)
|
static XYZ |
multiply(Vertex v1,
float d)
|
XYZ |
multiply(XYZ p)
|
static Vertex |
multiply(XYZ v1,
XYZ v2)
|
Vertex |
normal(XYZ b,
XYZ c)
|
static Vertex |
normal(XYZ a,
XYZ b,
XYZ c)
|
Vertex |
normalize()
|
Vertex |
normalize(float k)
|
XYZ |
plus(float k)
|
XYZ |
plus(float k,
float l)
|
XYZ |
plus(float k,
float l,
float m)
|
java.lang.String |
plus(java.lang.String s)
|
Vertex |
plus(Vertex p)
|
XYZ |
plus(XYZ p)
|
static Vertex |
plus(XYZ v1,
XYZ v2)
|
Vertex |
rotateX(float r)
|
Vertex |
rotateX(Param v)
|
Vertex |
rotateXDeg(float r)
|
Vertex |
rotateY(float r)
|
Vertex |
rotateY(Param v)
|
Vertex |
rotateYDeg(float r)
|
Vertex |
rotateZ(float r)
|
Vertex |
rotateZ(Param v)
|
Vertex |
rotateZDeg(float r)
|
Vertex |
scale(float x)
|
Vertex |
scale(float x,
float y)
|
Vertex |
scale(float x,
float y,
float z)
|
Vertex |
scale(Param x)
|
Vertex |
scale(Param x,
Param y)
|
Vertex |
scale(Param x,
Param y,
Param z)
|
Vertex |
scale(Pt vector)
|
Vertex |
scale(XYZ p)
|
static Vertex |
scale(XYZ v1,
XYZ v2)
|
Vertex |
scaleX(float x)
|
Vertex |
scaleX(Param x)
|
Vertex |
scaleY(float y)
|
Vertex |
scaleY(Param y)
|
Vertex |
scaleZ(float z)
|
Vertex |
scaleZ(Param z)
|
void |
set(float x)
|
void |
set(float x,
float y)
|
void |
set(float x,
float y,
float z)
|
void |
set(Param x)
|
void |
set(Param x,
Param y)
|
void |
set(Param x,
Param y,
Param z)
|
void |
set(Vertex v)
|
void |
set(XYZ p)
|
java.lang.String |
toString()
|
Vertex |
toUnit()
|
Vertex |
transform(Transform t)
|
Vertex |
translate(float x,
float y)
|
Vertex |
translate(float x,
float y,
float z)
|
Vertex |
translate(Param x,
Param y)
|
Vertex |
translate(Param x,
Param y,
Param z)
|
Vertex |
translate(Pt vector)
|
Vertex |
translate(XYZ p)
|
static Vertex |
translate(XYZ v1,
XYZ v2)
|
Vertex |
translateX(float x)
|
Vertex |
translateX(Param x)
|
Vertex |
translateY(float y)
|
Vertex |
translateY(Param y)
|
Vertex |
translateZ(float z)
|
Vertex |
translateZ(Param z)
|
void |
update()
|
float |
x()
|
void |
x(float x)
|
void |
x(Param p)
|
float |
y()
|
void |
y(float y)
|
void |
y(Param p)
|
float |
z()
|
void |
z(float z)
|
void |
z(Param p)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float x
public float y
public float z
| Constructor Detail |
|---|
public Vertex(float x,
float y)
public Vertex(float x,
float y,
float z)
(x) - the x coordinate.(y) - the y coordinate.(z) - the z coordinate.public Vertex(XYZ p)
(p) - Construct with a point.| Method Detail |
|---|
public float x()
x in interface XYZpublic float y()
y in interface XYZpublic float z()
z in interface XYZpublic Pt get()
public void set(Vertex v)
public void update()
public void x(float x)
x in interface XYZpublic void y(float y)
y in interface XYZpublic void z(float z)
z in interface XYZ
public void set(float x,
float y,
float z)
set in interface XYZ
public void set(float x,
float y)
set in interface XYZpublic void set(float x)
set in interface XYZpublic void set(XYZ p)
set in interface XYZ
public void set(Param x,
Param y,
Param z)
set in interface XYZ
public void set(Param x,
Param y)
set in interface XYZpublic void set(Param x)
set in interface XYZpublic void x(Param p)
x in interface XYZpublic void y(Param p)
y in interface XYZpublic void z(Param p)
z in interface XYZpublic XYZ plus(float k)
plus in interface iArithmetic
public XYZ plus(float k,
float l)
plus in interface iArithmetic
public XYZ plus(float k,
float l,
float m)
plus in interface iArithmeticpublic XYZ plus(XYZ p)
plus in interface iArithmeticpublic Vertex plus(Vertex p)
public static Vertex plus(XYZ v1,
XYZ v2)
public XYZ minus(float k)
minus in interface iArithmetic
public XYZ minus(float k,
float l)
minus in interface iArithmetic
public XYZ minus(float k,
float l,
float m)
minus in interface iArithmeticpublic XYZ minus(XYZ p)
minus in interface iArithmeticpublic Vertex minus(Vertex p)
public static Vertex minus(XYZ v1,
XYZ v2)
public XYZ multiply(float k)
multiply in interface iArithmetic
public XYZ multiply(float k,
float l)
multiply in interface iArithmetic
public XYZ multiply(float k,
float l,
float m)
multiply in interface iArithmeticpublic XYZ multiply(XYZ p)
multiply in interface iArithmeticpublic Vertex multiply(Vertex p)
public static Vertex multiply(XYZ v1,
XYZ v2)
public static XYZ multiply(Vertex v1,
float d)
public XYZ divide(float k,
float l,
float m)
divide in interface iArithmetic
public XYZ divide(float k,
float l)
divide in interface iArithmeticpublic XYZ divide(float k)
divide in interface iArithmeticpublic XYZ divide(XYZ p)
divide in interface iArithmeticpublic Vertex divide(Vertex p)
public static Vertex divide(XYZ v1,
XYZ v2)
public Vertex transform(Transform t)
t - Transform Matrix (could be complex) This function wl use
parametric operation with vertexpublic Vertex rotateX(float r)
public Vertex rotateX(Param v)
public Vertex rotateY(float r)
public Vertex rotateY(Param v)
public Vertex rotateZ(float r)
public Vertex rotateZ(Param v)
public Vertex scale(float x)
public Vertex scale(float x,
float y)
public Vertex scale(float x,
float y,
float z)
public Vertex scale(XYZ p)
public Vertex scale(Pt vector)
public static Vertex scale(XYZ v1,
XYZ v2)
public Vertex scale(Param x,
Param y,
Param z)
public Vertex scale(Param x,
Param y)
public Vertex scale(Param x)
public Vertex scaleX(float x)
public Vertex scaleX(Param x)
public Vertex scaleY(float y)
public Vertex scaleY(Param y)
public Vertex scaleZ(float z)
public Vertex scaleZ(Param z)
public Vertex translate(float x,
float y,
float z)
public Vertex translate(XYZ p)
public Vertex translate(Pt vector)
public static Vertex translate(XYZ v1,
XYZ v2)
public Vertex translate(float x,
float y)
public Vertex translate(Param x,
Param y,
Param z)
public Vertex translate(Param x,
Param y)
public Vertex translateX(float x)
public Vertex translateX(Param x)
public Vertex translateY(float y)
public Vertex translateY(Param y)
public Vertex translateZ(float z)
public Vertex translateZ(Param z)
public Vertex apply(Transform t)
public Vertex rotateXDeg(float r)
public Vertex rotateYDeg(float r)
public Vertex rotateZDeg(float r)
public static Vertex cross(XYZ a,
XYZ b)
public Vertex cross(XYZ b)
public static float dot(XYZ v0,
XYZ v1)
v0 - v1 -
public float dot(XYZ v)
dot in interface XYZpublic float length()
length in interface XYZpublic float lengthSq()
lengthSq in interface XYZ@Deprecated public float lengthNoSq()
public float length(XYZ p)
length in interface XYZpublic float lengthSq(XYZ p)
lengthSq in interface XYZ@Deprecated public float lengthNoSq(XYZ p)
public Vertex normalize()
public Vertex normalize(float k)
public Vertex normal(XYZ b,
XYZ c)
public static Vertex normal(XYZ a,
XYZ b,
XYZ c)
public Vertex toUnit()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String plus(java.lang.String s)
public java.lang.Object clone()
clone in class java.lang.Objectpublic void draw()
draw in interface XYZpublic boolean equalsPt(XYZ v)
equalsPt in interface XYZpublic Vertex calculate(PMatrix3D m)
m -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||