isQuadCubic

static boolean isQuadCubic(@NotNull() Direction lightFace, QuadView quad)

Returns true if quad is truly a quad (not a triangle) and fills a full block cross-section.If known to be true, allows use of a simpler/faster AO lighting algorithm.

Does not check if quad is actually coplanar with the light face, nor does it check that allquad vertices are coplanar with each other.

Expects convex quads with all points co-planar.

Parameters

lightFace

MUST be non-null.

Sources

jvm source
Link copied to clipboard