/// <summary> /// Initializes a new instance of the <see cref="T:Crystal.EvaluatorBase"/> class. /// </summary> /// <param name="ptA">The pt a.</param> /// <param name="ptB">The pt b.</param> protected EvaluatorBase(Pointf ptA, Pointf ptB) { Initialize(ptA.X, ptA.Y, ptB.X, ptB.Y); }
/// <summary> /// Initializes a new instance of the <see cref="T:Crystal.PowerEvaluator"/> class. /// <see href="https://www.desmos.com/calculator/ok9nse8l3u">Power</see> for an interactive /// plot. /// </summary> /// <param name="ptA">Point a.</param> /// <param name="ptB">Point b.</param> /// <param name="power">Power.</param> public PowerEvaluator(Pointf ptA, Pointf ptB, float power) : base(ptA, ptB) { _p = power.Clamp <float>(MinP, MaxP); Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="T:Crystal.SigmoidEvaluator"/> class. /// <see href="https://www.desmos.com/calculator/u4qmty3ffk">Parametrized Sigmoid</see> for an interactive /// plot. /// </summary> /// <param name="ptA">Point a.</param> /// <param name="ptB">Point b.</param> /// <param name="k">K.</param> public SigmoidEvaluator(Pointf ptA, Pointf ptB, float k) : base(ptA, ptB) { _k = k.Clamp <float>(MinK, MaxK); Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="T:Crystal.PowerEvaluator"/> class. /// <see href="https://www.desmos.com/calculator/ok9nse8l3u">Power</see> for an interactive /// plot. /// </summary> /// <param name="ptA">Point a.</param> /// <param name="ptB">Point b.</param> public PowerEvaluator(Pointf ptA, Pointf ptB) : base(ptA, ptB) { _p = 2.0f; Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="T:Crystal.SigmoidEvaluator"/> class. /// <see href="https://www.desmos.com/calculator/u4qmty3ffk">Parametrized Sigmoid</see> for an interactive /// plot. /// </summary> /// <param name="ptA">Point a.</param> /// <param name="ptB">Point b.</param> public SigmoidEvaluator(Pointf ptA, Pointf ptB) : base(ptA, ptB) { _k = -0.6f; Initialize(); }