public class Intersection extends Object
Modifier and Type | Field and Description |
---|---|
double |
dirty |
double[] |
location |
double[] |
surfaceNormal |
Constructor and Description |
---|
Intersection(double[] pos,
double[] n)
Provides the relevant information about where a colision occured.
|
Modifier and Type | Method and Description |
---|---|
static Intersection |
inf(double[] normal) |
void |
setDirty(double d) |
public double[] location
public double[] surfaceNormal
public double dirty
public Intersection(double[] pos, double[] n)
pos
- location of the intersection.n
- normal of the surface being intersected.public void setDirty(double d)
public static Intersection inf(double[] normal)
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.