|
Angulos
|
Represents a 3d triangle. More...
Public Member Functions | |
| Triangle3D (Vector3 vertex1, Vector3 vertex2, Vector3 vertex3, bool calculateEdges=true) | |
| Create a new triangle from the given vertices. | |
| Triangle3D () | |
| Returns a triangle with points of all zeros. | |
| override string | ToString () |
| Converts the triangle to a string. | |
| override bool | Equals (object obj) |
| Checks if two vertices are within Epsilon of each other. | |
| unsafe int | GetSize () |
| Finds the size of a triangle in bytes. | |
Static Public Member Functions | |
| static Triangle3D | ShiftTriangle (Vector3 pos, Triangle3D tri) |
| Moves a triangle. | |
| static Triangle3D | RotateByQuaternion (Quaternion q, Triangle3D triIn) |
| Rotates a triangle by a quaternion. | |
| static | operator Vector3[] (Triangle3D tri) |
| Converts the triangle to a list of Vector3s. | |
| static Triangle3D | operator+ (Triangle3D left, Triangle3D right) |
| Adds the vertices of two triangles together. | |
| static Triangle3D | ScaleTriangle (Vector3 scale, Triangle3D InputTriangle) |
| Scales a triangle by a vector. | |
| static Triangle3D[] | TriangleDistinct (Triangle3D[] triangles) |
| The same functionallity as distinct, but the inputs and outputs are arrays. | |
| static double | GetArea (Triangle3D tri) |
| Finds the area of a triangle. | |
| static Triangle3D | Duplicate (Triangle3D triangle) |
| Duplicates a triangle with a shallow copy. | |
| static bool | HasVertex (Vector3 vertex, Triangle3D tri) |
| Checks if a triangle has a vertex. | |
Public Attributes | |
| LineSegment3D[] | Edges |
| The 3 edges of the triangle. | |
Properties | |
| Vector3 | Vertex1 [get, set] |
| The first vertex. | |
| Vector3 | Vertex2 [get, set] |
| The second vertex. | |
| Vector3 | Vertex3 [get, set] |
| The third vertex. | |
| Circle2d | Circumcircle [get] |
| The circumcircle of the triangle. | |
Represents a 3d triangle.
|
inline |
Create a new triangle from the given vertices.
| vertex1 | |
| vertex2 | |
| vertex3 | |
| calculateEdges | If the constructor should automatically generate the edges. |
|
inlinestatic |
Duplicates a triangle with a shallow copy.
| triangle |
|
inline |
Checks if two vertices are within Epsilon of each other.
| obj |
|
inlinestatic |
Finds the area of a triangle.
| tri |
|
inline |
Finds the size of a triangle in bytes.
|
inlinestatic |
Checks if a triangle has a vertex.
| vertex | |
| tri |
|
inlineexplicitstatic |
Converts the triangle to a list of Vector3s.
| tri |
|
inlinestatic |
Adds the vertices of two triangles together.
| left | |
| right |
|
inlinestatic |
Rotates a triangle by a quaternion.
| q | |
| triIn |
|
inlinestatic |
Scales a triangle by a vector.
| scale | |
| InputTriangle |
|
inlinestatic |
Moves a triangle.
| pos | |
| tri |
|
inline |
Converts the triangle to a string.
|
inlinestatic |
The same functionallity as distinct, but the inputs and outputs are arrays.
| triangles |