Triangle class

Constructors

Triangle([Vector3? a, Vector3? b, Vector3? c])
Triangle.init({Vector3? a, Vector3? b, Vector3? c})

Properties

a Vector3
getter/setter pair
b Vector3
getter/setter pair
c Vector3
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
getter/setter pair

Methods

clone() Triangle
closestPointToPoint(Vector3 p, Vector3 target) Vector3
containsPoint(dynamic point) bool
copy(Triangle triangle) Triangle
equals(Triangle triangle) bool
getArea() double
getBarycoord(dynamic point, Vector3 target) Vector3
getMidpoint(Vector3 target) Vector3
getNormal(Vector3 target) Vector3
getPlane(Plane target) Plane
getUV(dynamic point, dynamic uv1, dynamic uv2, dynamic uv3, dynamic target) → dynamic
getValue(Object? key) Vector3
intersectsBox(Box3 box) → dynamic
isFrontFacing(Vector3 direction) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(Vector3 a, Vector3 b, Vector3 c) Triangle
setFromPointsAndIndices(dynamic points, int i0, int i1, int i2) Triangle
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? key) Vector3

Static Methods

static_containsPoint(dynamic point, Vector3 a, Vector3 b, Vector3 c) bool
static_getBarycoord(dynamic point, Vector3 a, Vector3 b, Vector3 c, Vector3 target) Vector3
static_getNormal(Vector3 a, Vector3 b, Vector3 c, Vector3 target) Vector3
static_getUV(dynamic point, Vector3 p1, Vector3 p2, Vector3 p3, dynamic uv1, dynamic uv2, dynamic uv3, dynamic target) → dynamic
static_isFrontFacing(Vector3 a, Vector3 b, Vector3 c, Vector3 direction) bool