Beispiel #1
0
        public TrilinearCoordinate ToTrilinear(NVector vertexA, NVector vertexB, NVector vertexC)
        {
            BarycentricCoordinate barycentric = ToBarycentric(vertexA, vertexB, vertexC);

            return(barycentric.ToTrilinear(vertexA, vertexB, vertexC));
        }
Beispiel #2
0
        /// <summary>
        /// To the trilinear.
        /// </summary>
        /// <param name="vertexA">The vertex a.</param>
        /// <param name="vertexB">The vertex b.</param>
        /// <param name="vertexC">The vertex c.</param>
        /// <returns>TrilinearCoordinate.</returns>
        public TrilinearCoordinate ToTrilinear(Point vertexA, Point vertexB, Point vertexC)
        {
            BarycentricCoordinate barycentric = ToBarycentric(vertexA, vertexB, vertexC);

            return(barycentric.ToTrilinear(vertexA, vertexB, vertexC));
        }