Struct Triangle

Triangle object

struct Triangle ;

Fields

NameTypeDescription
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

NameDescription
boundingBox ()
isPointInside (point) Returns -1 if given point is inside the triangle