getFaceNormal method

Vec3 getFaceNormal(
  1. int i,
  2. Vec3 target
)

Compute the normal of triangle i. @return The "target" vector object

Implementation

Vec3 getFaceNormal(int i, Vec3 target) {
  final i3 = i * 3;
  return target.set(faceNormals[i3], faceNormals[i3 + 1], faceNormals[i3 + 2]);
}