Skip to content

Commit

Permalink
Expose points in Triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
azrafe7 committed Dec 12, 2016
1 parent 6efa6e6 commit 10b7cad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions com/nodename/delaunay/Triangle.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.nodename.delaunay;

import com.nodename.geom.Point;

using com.nodename.delaunay.ArrayHelper;


Expand All @@ -9,13 +11,21 @@ class Triangle {
return sites;
}

public var points(get, null) : Array<Point>;
inline private function get_points():Array<Point> {
return points;
}

public function new(a:Site, b:Site, c:Site) {
sites = [a, b, c];
points = [a.coord, b.coord, c.coord];
}

public function dispose():Void {
sites.clear();
sites = null;
points.clear();
points = null;
}

}

0 comments on commit 10b7cad

Please sign in to comment.