public Triangle(GraphicCoordinate a, GraphicCoordinate b, GraphicCoordinate c, Color color) { this.A = a.ToVector3(); this.B = b.ToVector3(); this.C = c.ToVector3(); this.Color = color; }
private void LoadGraphics() { var coordinates = _way.Nodes.Select(n => GraphicCoordinate.FromCoordinate(n.Coordinate)).ToArray(); _waygraphic = new WayGraphic(coordinates, GetVertexConfiguration()); }
public Square(GraphicCoordinate a, GraphicCoordinate b, GraphicCoordinate c, GraphicCoordinate d, Color color) { _t1 = new Triangle(a, b, c, color); _t2 = new Triangle(c, d, a, color); }