| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE
The type number associated with a
PhongMaterial. |
| Constructor and Description |
|---|
PhongMaterial()
Constructs a new
PhongMaterial instance. |
PhongMaterial(float exponent)
Constructs a new
PhongMaterial instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares
object to this PhongMaterial instance for equality. |
float |
getExponent()
Returns the exponent of this
PhongMaterial instance. |
int |
getType()
Returns the type of this
PhongMaterial instance. |
int |
hashCode()
Returns a hash code for this
PhongMaterial instance. |
java.lang.String |
toString()
Returns a
String representation of this PhongMaterial instance. |
public static final int TYPE
PhongMaterial. The number is 4.public PhongMaterial()
PhongMaterial instance.
Calling this constructor is equivalent to new PhongMaterial(20.0F).
public PhongMaterial(float exponent)
PhongMaterial instance.exponent - the exponent to usepublic java.lang.String toString()
String representation of this PhongMaterial instance.toString in class java.lang.ObjectString representation of this PhongMaterial instancepublic boolean equals(java.lang.Object object)
object to this PhongMaterial instance for equality.
Returns true if, and only if, object is an instance of PhongMaterial, and their respective values are equal, false otherwise.
equals in class java.lang.Objectobject - the Object to compare to this PhongMaterial instance for equalitytrue if, and only if, object is an instance of PhongMaterial, and their respective values are equal, false otherwisepublic float getExponent()
PhongMaterial instance.PhongMaterial instancepublic int getType()
PhongMaterial instance.public int hashCode()
PhongMaterial instance.hashCode in class java.lang.ObjectPhongMaterial instance