예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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();
 }
예제 #3
0
 /// <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();
 }
예제 #4
0
 /// <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();
 }
예제 #5
0
 /// <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();
 }