public class SVertex
extends java.lang.Object
Constructor and Description |
---|
SVertex(float x,
float y,
float z)
Constructeur d'un vertex à trois composantes pour position (x,y,z) ou pour couleur (r,g,b).
|
SVertex(java.lang.String expression)
Constructeur d'un vertex.
|
Modifier and Type | Method and Description |
---|---|
float |
get(int index)
...
|
float |
getU()
...
|
float |
getV()
...
|
float |
getX()
...
|
float |
getY()
...
|
float |
getZ()
...
|
static void |
main(java.lang.String[] args)
Méthode de test pour la classe SFace.
|
java.lang.String |
toString() |
public SVertex(float x, float y, float z)
x
- - La 1ière composante du vertex.y
- - La 2ième composante du vertex.z
- - La 3ième composante du vertex.public SVertex(java.lang.String expression) throws SConstructorException
expression
- - L'expression définisant les composantes du vertex.SConstructorException
- S'il y a eu une erreur dans l'expression du vertex.public float getX()
public float getY()
public float getZ()
public float getU()
public float getV()
public float get(int index)
index
- public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws SModelOBJParserException
args
- SModelOBJParserException