Esempio n. 1
0
        public PLine(Vector2 start, Vector2 end, uint thickness = 1) : base(thickness)
        {
            this.position = start;
            this.end      = end - start;
            Slope         = end - start;
            Slope.Normalize();

            vpcStart.Position.X = start.X;
            vpcStart.Position.Y = start.Y;
            vpcEnd.Position.X   = end.X;
            vpcEnd.Position.Y   = end.Y;
        }