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 IVector <T> AsVector <T>(this IVector1D <T> vector1D) { return(new Vector <T>(vector1D.DeltaX)); }