Triangle class

Available extensions

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(Vector3 point) bool
copy(Triangle triangle) Triangle
equals(Triangle triangle) bool
getArea() double
getBarycoord(Vector3 point, Vector3 target) Vector3
getMidpoint(Vector3 target) Vector3
getNormal(Vector3 target) Vector3
getPlane(Plane target) Plane
getUV(Vector3 point, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector target) → dynamic
getValue(Object? key) Vector3
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(List<Vector3> 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

staticContainsPoint(Vector3 point, Vector3 a, Vector3 b, Vector3 c) bool
staticGetBarycoord(Vector3 point, Vector3 a, Vector3 b, Vector3 c, Vector3 target) Vector3
staticGetNormal(Vector3 a, Vector3 b, Vector3 c, Vector3 target) Vector3
staticGetUV(Vector3 point, Vector3 p1, Vector3 p2, Vector3 p3, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector target) → dynamic
staticIsFrontFacing(Vector3 a, Vector3 b, Vector3 c, Vector3 direction) bool