use of com.xenoage.utils.math.geom.Point2f in project Zong by Xenoage.
the class MathUtils method normalVectorMean.
/**
* Returns the normalized normal vector at the second given point.
* It is the mean value of the normal vector between the first and
* second and of the normal vector of the second and third point.
* @deprecated use {@link Point2f#normalVectorMean(Point2f, Point2f, Point2f)} instead
*/
public static Point2f normalVectorMean(Point2f start, Point2f middle, Point2f end) {
Point2f n1 = normalVector(start, middle);
Point2f n2 = normalVector(middle, end);
return n1.add(n2).normalize();
}
Aggregations