Modifier and Type | Field and Description |
---|---|
static int |
RELATIVE_OFFSET_IS_TANGENT_SPACE
The relative offset of the Is Tangent Space parameter in the
float array. |
static int |
SIZE
The size of a
SurfaceNormalTexture in the float array. |
static int |
TYPE
The type number associated with a
SurfaceNormalTexture . |
RELATIVE_OFFSET_SIZE, RELATIVE_OFFSET_TYPE
Constructor and Description |
---|
SurfaceNormalTexture()
Constructs a new
SurfaceNormalTexture instance. |
SurfaceNormalTexture(boolean isTangentSpace)
Constructs a new
SurfaceNormalTexture instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Compares
object to this SurfaceNormalTexture instance for equality. |
int |
getSize()
Returns the size of this
SurfaceNormalTexture instance. |
int |
getType()
Returns the type of this
SurfaceNormalTexture instance. |
int |
hashCode()
Returns a hash code for this
SurfaceNormalTexture instance. |
boolean |
isEmissive()
Returns
true if, and only if, this SurfaceNormalTexture instance is emissive, false otherwise. |
boolean |
isTangentSpace()
Returns
true if, and only if, this SurfaceNormalTexture shows the surface normal in tangent space, false otherwise. |
float[] |
toArray()
Returns a
float array representation of this SurfaceNormalTexture instance. |
java.lang.String |
toString()
Returns a
String representation of this SurfaceNormalTexture instance. |
public static final int RELATIVE_OFFSET_IS_TANGENT_SPACE
float
array. The value is 2
.public static final int SIZE
SurfaceNormalTexture
in the float
array. The size is 3
.public static final int TYPE
SurfaceNormalTexture
. The number is 6
.public SurfaceNormalTexture()
SurfaceNormalTexture
instance.
Calling this constructor is equivalent to the following:
new SurfaceNormalTexture(false)
public SurfaceNormalTexture(boolean isTangentSpace)
SurfaceNormalTexture
instance.isTangentSpace
- true
if, and only if, this SurfaceNormalTexture
shows the surface normal in tangent space, false
otherwisepublic java.lang.String toString()
String
representation of this SurfaceNormalTexture
instance.toString
in class java.lang.Object
String
representation of this SurfaceNormalTexture
instancepublic boolean equals(java.lang.Object object)
object
to this SurfaceNormalTexture
instance for equality.
Returns true
if, and only if, object
is an instance of SurfaceNormalTexture
, and their respective values are equal, false
otherwise.
equals
in class java.lang.Object
object
- the Object
to compare to this SurfaceNormalTexture
instance for equalitytrue
if, and only if, object
is an instance of SurfaceNormalTexture
, and their respective values are equal, false
otherwisepublic boolean isEmissive()
true
if, and only if, this SurfaceNormalTexture
instance is emissive, false
otherwise.isEmissive
in interface Texture
true
if, and only if, this SurfaceNormalTexture
instance is emissive, false
otherwisepublic boolean isTangentSpace()
true
if, and only if, this SurfaceNormalTexture
shows the surface normal in tangent space, false
otherwise.true
if, and only if, this SurfaceNormalTexture
shows the surface normal in tangent space, false
otherwisepublic float[] toArray()
float
array representation of this SurfaceNormalTexture
instance.public int getSize()
SurfaceNormalTexture
instance.public int getType()
SurfaceNormalTexture
instance.public int hashCode()
SurfaceNormalTexture
instance.hashCode
in class java.lang.Object
SurfaceNormalTexture
instance