isFrontFacing

fun isFrontFacing(a: Vector3, b: Vector3, c: Vector3, direction: Vector3): Boolean

Returns true if the triangle is oriented towards the given direction.

Return

Whether the triangle is oriented towards the given direction or not.

Parameters

a

The first corner of the triangle.

b

The second corner of the triangle.

c

The third corner of the triangle.

direction

The (normalized) direction vector.