|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright (c) 2009-2012 jMonkeyEngine |
|
|
|
* Copyright (c) 2009-2018 jMonkeyEngine |
|
|
|
* All rights reserved. |
|
|
|
* All rights reserved. |
|
|
|
* |
|
|
|
* |
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
@ -43,6 +43,7 @@ import java.util.logging.Logger; |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Mark Powell |
|
|
|
* @author Mark Powell |
|
|
|
* @author Joshua Slack |
|
|
|
* @author Joshua Slack |
|
|
|
|
|
|
|
* @author Ian McClean |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class Plane implements Savable, Cloneable, java.io.Serializable { |
|
|
|
public class Plane implements Savable, Cloneable, java.io.Serializable { |
|
|
|
|
|
|
|
|
|
|
@ -92,6 +93,16 @@ public class Plane implements Savable, Cloneable, java.io.Serializable { |
|
|
|
this.constant = constant; |
|
|
|
this.constant = constant; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Constructor instantiates a new <code>Plane</code> object. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param normal The normal of the plane. |
|
|
|
|
|
|
|
* @param displacement A vector representing a point on the plane. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public Plane(Vector3f normal, Vector3f displacement) { |
|
|
|
|
|
|
|
this(normal, displacement.dot(normal)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* <code>setNormal</code> sets the normal of the plane. |
|
|
|
* <code>setNormal</code> sets the normal of the plane. |
|
|
|
* |
|
|
|
* |
|
|
|