示例#1
0
 public LineSegment(Vec2 pStart, Vec2 pEnd, uint pColor = 0xffffffff, uint pLineWidth = 1, bool pGlobalCoords = false) : base(false)
 {
     start           = pStart;
     end             = pEnd;
     color           = pColor;
     lineWidth       = pLineWidth;
     useGlobalCoords = pGlobalCoords;
 }
示例#2
0
 static public void RenderLine(Vec2 pStart, Vec2 pEnd, uint pColor = 0xffffffff, uint pLineWidth = 1, bool pGlobalCoords = false)
 {
     RenderLine(pStart.x, pStart.y, pEnd.x, pEnd.y, pColor, pLineWidth, pGlobalCoords);
 }
示例#3
0
 public NLineSegment(Vec2 pStart, Vec2 pEnd, uint pColor = 0xffffffff, uint pLineWidth = 1, bool pGlobalCoords = false)
     : base(pStart, pEnd, pColor, pLineWidth, pGlobalCoords)
 {
     _normal = new Arrow(new Vec2(0, 0), new Vec2(0, 0), 40, 0xffff0000, 1);
     AddChild(_normal);
 }