MQuad class
- Implemented types
Constructors
- MQuad(Vector3 point0, Vector3 point1, Vector3 point2, Vector3 point3)
- Create a new quad from four points. Copies all four.
- MQuad.copy(Quad other)
-
Create a new quad as a copy of
other.factory - MQuad.zero()
- Create a new quad with all four points set to the origin.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- normal → Vector3
-
The normal of the quad. Allocates a new Vector3.
no setterinherited
- point0 → MVector3
-
The first point of the quad.
final
- point1 → MVector3
-
The second point of the quad.
final
- point2 → MVector3
-
The third point of the quad.
final
- point3 → MVector3
-
The fourth point of the quad.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clone(
) → MQuad -
Clone of this.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFrom(
Quad other) → void -
Sets the points of this by copying them from
other. -
setPoints(
Vector3 point0, Vector3 point1, Vector3 point2, Vector3 point3) → void -
Sets the points of this by copying
point0,point1,point2, andpoint3. -
toString(
) → String -
Returns a printable string.
inherited
-
transform(
Matrix4 matrix) → void -
Transforms each point of this by
matrix. -
transformed(
Matrix4 matrix) → Quad -
Copy of this with each point transformed by
matrix.inherited -
translate(
Vector3 offset) → void -
Translates each point of this by
offset. -
translated(
Vector3 offset) → Quad -
Copy of this with each point translated by
offset.inherited
Operators
-
operator ==(
Object other) → bool -
Check if two quads are the same.
inherited