Beispiel #1
0
double Triangle::slopeAngle(const Matrix4d &T) const
{
  const double scale = T(3,3);
  Vector3d trans;
  T.get_translation(trans);
  // get scaled translation out of matrix
  const Vector3d n = T * Normal - trans/scale;
  return asin(n.z()/n.length());
}