private static bool IsOffSetValidForSide(this Curve curve, Curve offSet, SidesOfCentre side) { if (offSet == null) { return(false); } var start = new Point2d(curve.StartPoint.X, curve.StartPoint.Y); var offSetVector = start.GetVectorTo(new Point2d(offSet.StartPoint.X, offSet.StartPoint.Y)); return(Math.Abs(curve.AngleFromCurveToForSide(side) - offSetVector.Angle) < RadiansHelper.ANGLE_TOLERANCE); }