Geometry Helper
public abstract class GeometryHelper
Content copied to clipboard
Static routines of general utility for renderer implementations. Renderers are not required to use these helpers, but they were designed to be usable without the default renderer.
Functions
computeShapeFlags
Link copied to clipboard
Analyzes the quad and returns a value with some combinationof AXIS_ALIGNED_FLAG, LIGHT_FACE_FLAG and CUBIC_FLAG.Intended use is to optimize lighting when the geometry is regular.Expects convex quads with all points co-planar.
isParallelQuadOnFace
Link copied to clipboard
isQuadCubic
Link copied to clipboard
static boolean isQuadCubic(@NotNull() Direction lightFace, QuadView quad)
Content copied to clipboard
isQuadParallelToFace
Link copied to clipboard
longestAxis
Link copied to clipboard
static Direction.Axis longestAxis(float normalX, float normalY, float normalZ)
Content copied to clipboard
Properties
AXIS_ALIGNED_FLAG
Link copied to clipboard
public final static int AXIS_ALIGNED_FLAG
Content copied to clipboard
CUBIC_FLAG
Link copied to clipboard
public final static int CUBIC_FLAG
Content copied to clipboard
FLAG_BIT_COUNT
Link copied to clipboard
public final static int FLAG_BIT_COUNT
Content copied to clipboard
LIGHT_FACE_FLAG
Link copied to clipboard
public final static int LIGHT_FACE_FLAG
Content copied to clipboard
Sources
jvm source
Link copied to clipboard