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; }
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); }
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); }