示例#1
0
 public IndexQuad(IndexPoint point0, IndexPoint point1, IndexPoint point2, IndexPoint point3, bool forwardSlash = false)
     : base(point0, point1, point2, point3) => _forwardSlash = forwardSlash;
示例#2
0
        // Counter-clockwise winding
        //     2
        //    / \
        //   /   \
        //  0-----1

        /// <summary>
        /// Creates an index triangle with counter-clockwise winding.
        /// </summary>
        /// <param name="point0">On an equilateral triangle, this is the bottom left point.</param>
        /// <param name="point1">On an equilateral triangle, this is the bottom right point.</param>
        /// <param name="point2">On an equilateral triangle, this is the top point.</param>
        public IndexTriangle(IndexPoint point0, IndexPoint point1, IndexPoint point2)
        {
            _points.Add(point0);
            _points.Add(point1);
            _points.Add(point2);
        }