Ejemplo n.º 1
0
        public BoundingBox GetBoundingBox(decimal strokeWidth)
        {
            var vector = Vector.FromCoordinates(Coord1, Coord2);
            var center = Coordinate.Average(Coord1, Coord2);

            return(BoundingBox.Create(vector.Magnitude, strokeWidth, center).RotateAbout(center, vector.Angle));
        }