|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectunwrap.UTriangle
public class UTriangle
| Field Summary | |
|---|---|
UPoint |
a
|
UPoint |
b
|
UPoint |
c
|
| Constructor Summary | |
|---|---|
UTriangle(UPoint _a,
UPoint _b,
UPoint _c,
int _id)
initialize the triangle and give the referred points and an unique triangle id. |
|
| Method Summary | |
|---|---|
void |
draw2d(Vec3D pos)
draw the flatten triangle in 2d on the given position. |
void |
draw2d(Vec3D pos,
processing.core.PGraphics pg)
draw the flatten triangle in 2d on the given position. |
void |
draw2d(Vec3D pos,
Vec3D dir,
processing.core.PGraphics pg)
draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction. |
void |
draw2d(Vec3D pos,
Vec3D dir,
USide n)
draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction. |
void |
draw2d(Vec3D pos,
Vec3D dir,
USide n,
processing.core.PGraphics pg)
draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction. |
void |
draw3d()
draw the triangle in 3d. |
void |
draw3d(processing.core.PGraphics pg)
draw the triangle in 3d. |
void |
drawNeighborInfoText(float size)
draw assembling info text. |
void |
drawNeighborInfoText(float size,
processing.core.PGraphics pg)
draw assembling info text. |
void |
drawNeighborInfoText(processing.core.PGraphics pg,
processing.core.PFont font,
float size)
draw assembling info text. |
void |
drawNormal()
draw the triangle normals with default length. |
void |
drawNormal(float scale)
draw the triangle normals with given length. |
void |
drawNormal(processing.core.PGraphics pg,
float scale)
draw the triangle normals with given length. |
Vec3D[] |
get2d(Vec3D pos)
get the flatten trianglepoints from to the given position. |
Vec3D[] |
get2d(Vec3D pos,
Vec3D dir)
get the flatten trianglepoints from to the given position and its rotation, direction. |
Vec3D[] |
get2d(Vec3D pos,
Vec3D dir,
USide n)
get the flatten trianglepoints from to the given position and its rotation, direction. |
UPoint |
getA2d()
get the triangle Point A in 2d |
USide |
getAB()
get the triangle side ab |
Vec3D |
getABBisector2d()
get the triangle bisector on side ab in 2d |
Vec3D |
getABBisector3d()
get the triangle bisector on side ab |
float |
getAlpha()
get the triangle angle alpha |
UPoint |
getB2d()
get the triangle Point B in 2d |
USide |
getBC()
get the triangle side bc |
Vec3D |
getBCBisector2d()
get the triangle bisector on side bc in 2d |
Vec3D |
getBCBisector3d()
get the triangle bisector on side bc |
float |
getBeta()
get the triangle angle beta |
UPoint |
getC2d()
get the triangle Point C in 2d |
USide |
getCA()
get the triangle side ca |
Vec3D |
getCABisector2d()
get the triangle bisector on side ca in 2d |
Vec3D |
getCABisector3d()
get the triangle bisector on side ca |
Vec3D |
getCenter2d()
get the triangle center in 2d |
Vec3D |
getCenter3d()
get the triangle center in 3d |
float |
getGamma()
get the triangle angle gamma |
int |
getID()
get the triangle id |
Vec3D |
getNormal()
get the Triangle normal. |
Vec3D |
getNormal(Vec3D addv,
UPoint p1,
UPoint p2,
UPoint p3,
float scale)
get the Normal from given Points. |
void |
update()
update the triangle. |
void |
updatePoints(UPoint[] _points)
update the triangle points |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public UPoint a
public UPoint b
public UPoint c
| Constructor Detail |
|---|
public UTriangle(UPoint _a,
UPoint _b,
UPoint _c,
int _id)
| Method Detail |
|---|
public void update()
public int getID()
public USide getBC()
public USide getCA()
public USide getAB()
public float getAlpha()
public float getBeta()
public float getGamma()
public Vec3D getCenter3d()
public Vec3D getBCBisector3d()
public Vec3D getCABisector3d()
public Vec3D getABBisector3d()
public UPoint getA2d()
public UPoint getB2d()
public UPoint getC2d()
public Vec3D getCenter2d()
public Vec3D getBCBisector2d()
public Vec3D getCABisector2d()
public Vec3D getABBisector2d()
public void updatePoints(UPoint[] _points)
public void draw3d()
public void draw3d(processing.core.PGraphics pg)
public void drawNormal()
public void drawNormal(float scale)
public void drawNormal(processing.core.PGraphics pg,
float scale)
public Vec3D getNormal()
public Vec3D getNormal(Vec3D addv,
UPoint p1,
UPoint p2,
UPoint p3,
float scale)
public void draw2d(Vec3D pos)
public void draw2d(Vec3D pos,
processing.core.PGraphics pg)
public void draw2d(Vec3D pos,
Vec3D dir,
processing.core.PGraphics pg)
public void draw2d(Vec3D pos,
Vec3D dir,
USide n)
public void draw2d(Vec3D pos,
Vec3D dir,
USide n,
processing.core.PGraphics pg)
public Vec3D[] get2d(Vec3D pos)
public Vec3D[] get2d(Vec3D pos,
Vec3D dir)
public Vec3D[] get2d(Vec3D pos,
Vec3D dir,
USide n)
public void drawNeighborInfoText(float size)
public void drawNeighborInfoText(float size,
processing.core.PGraphics pg)
public void drawNeighborInfoText(processing.core.PGraphics pg,
processing.core.PFont font,
float size)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||