Ejemplo n.º 1
0
        public Box1D(IPoint1D <T> point, IVector1D <T> vector) : this()
        {
            dynamic startWidth = point.X;
            dynamic endWidth   = startWidth + vector.DeltaX;

            if (startWidth <= endWidth)
            {
                Width = new Interval <T>(startWidth, true, endWidth, true);
            }
            else
            {
                Width = new Interval <T>(endWidth, true, startWidth, true);
            }
        }
 public static IPoint <T> AsPoint <T>(this IPoint1D <T> point1D)
 {
     return(new Point <T>(point1D.X));
 }