| Modifier and Type | Class and Description |
|---|---|
| public static enum | Plane.
Enum specifying on which side a point lies respective to the plane and it's normal. |
| Modifier and Type | Field and Description |
|---|---|
| public float | |
| public final Vector3 | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public float | |
| public Vector3 | |
| public boolean | Returns: whether the plane is front facingthe direction direction)Returns whether the plane is facing the direction vector. |
| public void | |
| public void | set(float
normal x-component nx, float normal y-component ny, float normal z-component nz, float distance to origin d)Sets the plane normal and distance |
| public void | |
| public void | |
| public void | |
| public Plane. | |
| public Plane. | Returns: The side the point lies relative to the planeReturns on which side the given point lies relative to the plane and its normal. |
| public String |
| d | back to summary |
|---|---|
| public float d | |
| normal | back to summary |
|---|---|
| public final Vector3 normal | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Plane | back to summary |
|---|---|
| public Plane() Constructs a new plane with all values set to 0 | |
| Plane | back to summary |
|---|---|
| public Plane(Vector3 normal, float d) Constructs a new plane based on the normal and distance to the origin.
| |
| Plane | back to summary |
|---|---|
| public Plane(Vector3 normal, Vector3 point) Constructs a new plane based on the normal and a point on the plane. | |
| Plane | back to summary |
|---|---|
| public Plane(Vector3 point1, Vector3 point2, Vector3 point3) Constructs a new plane out of the three given points that are considered to be on the plane. The normal is calculated via a cross product between (point1-point2)x(point2-point3) | |
| distance | back to summary |
|---|---|
| public float distance(Vector3 point) Calculates the shortest signed distance between the plane and the given point.
| |
| getD | back to summary |
|---|---|
public float getD()
| |
| getNormal | back to summary |
|---|---|
public Vector3 getNormal()
| |
| isFrontFacing | back to summary |
|---|---|
| public boolean isFrontFacing(Vector3 direction) Returns whether the plane is facing the direction vector. Think of the direction vector as the direction a camera looks in. This method will return true if the front side of the plane determined by its normal faces the camera.
| |
| set | back to summary |
|---|---|
| public void set(Vector3 point1, Vector3 point2, Vector3 point3) Sets the plane normal and distance to the origin based on the three given points which are considered to be on the plane. The normal is calculated via a cross product between (point1-point2)x(point2-point3) | |
| set | back to summary |
|---|---|
| public void set(float nx, float ny, float nz, float d) Sets the plane normal and distance
| |
| set | back to summary |
|---|---|
| public void set(Vector3 point, Vector3 normal) Sets the plane to the given point and normal. | |
| set | back to summary |
|---|---|
| public void set(float pointX, float pointY, float pointZ, float norX, float norY, float norZ) | |
| set | back to summary |
|---|---|
| public void set(Plane plane) Sets this plane from the given plane
| |
| testPoint | back to summary |
|---|---|
| public Plane. Returns on which side the given point lies relative to the plane and its normal. PlaneSide.Front refers to the side the plane normal points to. | |
| testPoint | back to summary |
|---|---|
| public Plane. Returns on which side the given point lies relative to the plane and its normal. PlaneSide.Front refers to the side the plane normal points to. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
PlaneSide#Front is the side to
which the normal points.
| Modifier and Type | Field and Description |
|---|---|
| public static final Plane. | |
| public static final Plane. | |
| public static final Plane. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Plane. | |
| public static Plane. |
| Back | back to summary |
|---|---|
| public static final Plane. | |
| Front | back to summary |
|---|---|
| public static final Plane. | |
| OnPlane | back to summary |
|---|---|
| public static final Plane. | |
| PlaneSide | back to summary |
|---|---|
| private PlaneSide() | |
| valueOf | back to summary |
|---|---|
| public static Plane. | |
| values | back to summary |
|---|---|
| public static Plane. | |