BoundingBox
Source from kool engine.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks aabb components for equality (using '==' operator). For better numeric stability consider using isFuzzyEqual.
Link copied to clipboard
Link copied to clipboard
Computes the squared hit distance for the given ray. If the ray does not intersect this BoundingBox Float.MAX_VALUE is returned. If the ray origin is inside this BoundingBox 0 is returned. The method returns the squared distance because it's faster to compute. If the exact distance is needed the square root of the result has to be taken.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Computes the distance between the given point and this BoundingBox. It this BoundingBox includes the point, 0 is returned.
Link copied to clipboard
Computes the squared distance between the given point and this BoundingBox. It this BoundingBox includes the point, 0 is returned.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard