Пример #1
0
 /// <summary>
 /// Determines whether the current objects contains a triangle.
 /// </summary>
 /// <param name="vertex1">The first vertex of the triangle to test.</param>
 /// <param name="vertex2">The second vertex of the triangle to test.</param>
 /// <param name="vertex3">The third vertex of the triangle to test.</param>
 /// <returns>The type of containment the two objects have.</returns>
 public ContainmentType Contains(ref Vector3 vertex1, ref Vector3 vertex2, ref Vector3 vertex3)
 {
     return(CollisionsHelper.SphereContainsTriangle(ref this, ref vertex1, ref vertex2, ref vertex3));
 }