Esempio n. 1
0
        /// <summary>
        /// Units the normal vector at.
        /// </summary>
        /// <param name="angleRadians">The angle radians.</param>
        /// <returns>VectorParametric.</returns>
        public VectorParametric UnitNormalVectorAt(double angleRadians)
        {
            VectorParametric unitTangentVector      = UnitTangentVectorAt(angleRadians);
            VectorParametric unitTangentVectorPrime = unitTangentVector.Differentiate();

            return(unitTangentVectorPrime / unitTangentVectorPrime.Magnitude(angleRadians));
        }
Esempio n. 2
0
        /// <summary>
        /// Curvatures the specified angle radians.
        /// </summary>
        /// <param name="angleRadians">The angle radians.</param>
        /// <returns>System.Double.</returns>
        public double Curvature(double angleRadians)
        {
            VectorParametric unitTangentVector      = UnitTangentVectorAt(angleRadians);
            VectorParametric unitTangentVectorPrime = unitTangentVector.Differentiate();
            VectorParametric vectorPrime            = Differentiate();

            return(unitTangentVectorPrime.Magnitude(angleRadians) / vectorPrime.Magnitude(angleRadians));
        }