Vertex class

Represents a vertex in 3D space.

A vertex consists out of space coordinates, UV/texture coordinates and a color.

Annotations

Constructors

Vertex({required Vector3 position, required Vector2 texCoord, Vector3? normal, Color color = const Color(0xFFFFFFFF)})
Represents a vertex in 3D space.

Properties

color Color
The color on the vertex.
final
hashCode int
The hash code for this object.
no setteroverride
normal ImmutableVector3
The normal vector of the vertex.
final
position ImmutableVector3
The position of the vertex in 3D space.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage Float32List
no setter
texCoord ImmutableVector2
The UV coordinates of the texture to map.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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