Triangle class Null safety

Defines a triangle by three points.

Constructors

Triangle()
Create a new, uninitialized triangle.
Triangle.copy(Triangle other)
Create a triangle as a copy of other.
Triangle.points(Vector3 point0, Vector3 point1, Vector3 point2)
Create a triangle by three points.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
point0 Vector3
The first point of the triangle.
read-only
point1 Vector3
The second point of the triangle.
read-only
point2 Vector3
The third point of the triangle.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

copyFrom(Triangle other) → void
Copy the triangle from other into this.
copyNormalInto(Vector3 normal) → void
Copy the normal of this into normal.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transform(Matrix4 t) → void
Transform this by the transform t.
translate(Vector3 offset) → void
Translate this by offset.

Operators

operator ==(Object other) bool
The equality operator.
inherited