/// <summary> /// Sets the handle tip to the provided coordinate. /// </summary> /// <param name="handleTip">The handle tip.</param> public void SetHandleTip(CartesianCoordinate handleTip) { CartesianOffset offset = handleTip.OffsetFrom(ControlPoint); Radius = offset.Length(); Rotation = offset.SlopeAngle(); }
public static void SlopeAngle_Returns_Angle_of_Slope_Between_Offset_Points( double xI, double yI, double xJ, double yJ, double angleDegreesExpected) { CartesianOffset offset = new CartesianOffset(new CartesianCoordinate(xI, yI), new CartesianCoordinate(xJ, yJ)); Angle slope = offset.SlopeAngle(); Assert.AreEqual(angleDegreesExpected, slope.Degrees); }