enum MyEnum {
A("foo", "bar"),
B("blue", "gree"),
C("blub", "blob");
public finalString key;
public final String value;
MyEnum(String key, String value) {
this.key = key;
this.value = value;
}
}
( https://github.com/hxDaedalus/hxDaedalus/blob/master/src/hxDaedalus/data/math/Geom2D.hx#L15 )
enum Intersection { EVertex( vertex: Vertex ); EEdge( edge: Edge ); EFace( face: Face ); ENull( ); }
public static function locatePosition( x: Float, y: Float, mesh: Mesh ): Intersection {