public interface Ray2DType
| Modifier and Type | Method and Description |
|---|---|
com.io7m.jtensors.core.unparameterized.vectors.Vector2D |
direction() |
default com.io7m.jtensors.core.unparameterized.vectors.Vector2D |
directionInverse() |
default boolean |
intersectsArea(double x0,
double y0,
double x1,
double y1)
Branchless optimization of the Kay-Kajiya slab ray/AABB intersection
test by Tavian Barnes.
|
com.io7m.jtensors.core.unparameterized.vectors.Vector2D |
origin() |
com.io7m.jtensors.core.unparameterized.vectors.Vector2D origin()
com.io7m.jtensors.core.unparameterized.vectors.Vector2D direction()
default com.io7m.jtensors.core.unparameterized.vectors.Vector2D directionInverse()
default boolean intersectsArea(double x0,
double y0,
double x1,
double y1)
Branchless optimization of the Kay-Kajiya slab ray/AABB intersection test by Tavian Barnes.
See tavianator.com.
x0 - The lower X coordinate.x1 - The upper X coordinate.y0 - The lower Y coordinate.y1 - The upper Y coordinate.true if the ray is intersecting the box.Copyright © 2017 <code@io7m.com> http://io7m.com