예제 #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);
 }