| java.lang.Object | ||
| ↳ | casmi.graphics.element.Element | |
| ↳ | casmi.graphics.element.Triangle | |
Triangle class. Wrap JOGL and make it easy to use.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | TRIANGLE | ||||||||||
| int | TRIANGLE_3D | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Triangle object using x,y-coordinate of corners.
| |||||||||||
Creates a new Triangle object using x,y-coordinate of corners.
| |||||||||||
Creates a new Triangle object using x,y-coordinate of corners.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets x,y-coordinate of corners.
| |||||||||||
Sets x,y-coordinate of corners.
| |||||||||||
Sets x,y-coordinate of corners.
| |||||||||||
Sets the color of the corner for gradation.
| |||||||||||
Sets the color of the corner for gradation.
| |||||||||||
Sets the position of the Element in 3D.
| |||||||||||
Sets the position of the Element in 2D.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
casmi.graphics.object.Renderable
| |||||||||||
From interface
casmi.graphics.object.Resettable
| |||||||||||
Creates a new Triangle object using x,y-coordinate of corners.
| x1 | The x-coordinate of the first corner. |
|---|---|
| y1 | The y-coordinate of the first corner. |
| x2 | The x-coordinate of the second corner. |
| y2 | The y-coordinate of the second corner. |
| x3 | The x-coordinate of the third corner. |
| y3 | The y-coordinate of the third corner. |
Creates a new Triangle object using x,y-coordinate of corners.
| v1 | The coordinates of the first corner. |
|---|---|
| v2 | The coordinates of the second corner. |
| v3 | The coordinates of the third corner. |
Creates a new Triangle object using x,y-coordinate of corners.
| x1 | The x-coordinate of the first corner. |
|---|---|
| y1 | The y-coordinate of the first corner. |
| z1 | The z-coordinate of the first corner. |
| x2 | The x-coordinate of the second corner. |
| y2 | The y-coordinate of the second corner. |
| z2 | The z-coordinate of the second corner. |
| x3 | The x-coordinate of the third corner. |
| y3 | The y-coordinate of the third corner. |
| z3 | The z-coordinate of the third corner. |
Sets x,y-coordinate of corners.
| v1 | The coordinates of the first corner. |
|---|---|
| v2 | The coordinates of the second corner. |
| v3 | The coordinates of the third corner. |
Sets x,y-coordinate of corners.
| x1 | The x-coordinate of the first corner. |
|---|---|
| y1 | The y-coordinate of the first corner. |
| x2 | The x-coordinate of the second corner. |
| y2 | The y-coordinate of the second corner. |
| x3 | The x-coordinate of the third corner. |
| y3 | The y-coordinate of the third corner. |
Sets x,y-coordinate of corners.
| x1 | The x-coordinate of the first corner. |
|---|---|
| y1 | The y-coordinate of the first corner. |
| z1 | The z-coordinate of the first corner. |
| x2 | The x-coordinate of the second corner. |
| y2 | The y-coordinate of the second corner. |
| z2 | The z-coordinate of the second corner. |
| x3 | The x-coordinate of the third corner. |
| y3 | The y-coordinate of the third corner. |
| z3 | The z-coordinate of the third corner. |
Sets the color of the corner for gradation.
| index | The index of the corner. |
|---|---|
| color | The color of the corner. |
Sets the color of the corner for gradation.
| index | The index of the corner. |
|---|---|
| colorSet | The colorSet of the corner. |
Sets the position of the Element in 3D.
| x | x-coordinate |
|---|---|
| y | y-coordinate |
| z | z-coordinate |
Sets the position of the Element in 2D.
| x | x-coordinate |
|---|---|
| y | y-coordinate |