コード例 #1
0
 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;
 }
コード例 #2
0
        private void LoadGraphics()
        {
            var coordinates = _way.Nodes.Select(n => GraphicCoordinate.FromCoordinate(n.Coordinate)).ToArray();

            _waygraphic = new WayGraphic(coordinates, GetVertexConfiguration());
        }
コード例 #3
0
 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);
 }