Struct Triangle
Triangle object
struct Triangle
;
Fields
Name | Type | Description |
---|---|---|
barycenter
|
Vector!(float,3) | |
d
|
float | |
edges
|
Vector!(float,3)[3] | |
materialIndex
|
int | |
n
|
Vector!(float,3)[3] | |
normal
|
Vector!(float,3) | |
t1
|
Vector!(float,2)[3] | |
t2
|
Vector!(float,2)[3] | |
tg
|
Vector!(float,4)[3] | |
v
|
Vector!(float,3)[3] |
Methods
Name | Description |
---|---|
boundingBox
()
|
|
isPointInside
(point)
|
Returns -1 if given point is inside the triangle |