Generating links between zones within the sector using elimination algorithm with connectedness testing Improved sample elimination API - now accepts simple density function! Ported MIConvexHull library to single precision, Unity.Mathematics math Removed old galaxy generator (new code is much better!)
16 lines
No EOL
291 B
C#
16 lines
No EOL
291 B
C#
using Unity.Mathematics;
|
|
|
|
public class Vertex2<T> : Vertex2
|
|
{
|
|
public T StoredObject { get; }
|
|
|
|
public Vertex2(float x, float y, T obj) : base(x, y)
|
|
{
|
|
StoredObject = obj;
|
|
}
|
|
|
|
public Vertex2(float2 pos, T obj) : base(pos)
|
|
{
|
|
StoredObject = obj;
|
|
}
|
|
} |