com.azalient.api.a.position
Interface IVertex

All Superinterfaces:
Serializable

public interface IVertex
extends Serializable

A point in space (x,y,z). This is used for Mesh rendering and is different to the Xyz object, in that it can contain a normal vector


Method Summary
 void addFaceNormal(IXyz faceNormal)
           
 double distance(IVertex there)
          Return the distance of this vertex from that one
 IXyz from(IVertex that)
          Return the vector from that point to this one
 IXyz normal()
          Return the normal
 void render(OpenGL gl)
           
 void texmap(OpenGL gl)
           
 double x()
          X-coordinate of this point
 IXyz xyz()
          This point as an IXyz object
 double y()
          Y-coordinate of this point
 double z()
          Z-coordinate of this point
 

Method Detail

x

double x()
X-coordinate of this point


y

double y()
Y-coordinate of this point


z

double z()
Z-coordinate of this point


distance

double distance(IVertex there)
Return the distance of this vertex from that one


from

IXyz from(IVertex that)
Return the vector from that point to this one


normal

IXyz normal()
Return the normal


xyz

IXyz xyz()
This point as an IXyz object


texmap

void texmap(OpenGL gl)
Internal - Not recommended for use. Public as a side-effect of implementation method
Set the texture map association for this vertex, given an OpenGL handle

render

void render(OpenGL gl)
Internal - Not recommended for use. Public as a side-effect of implementation method
render this vertex, given an OpenGL handle

addFaceNormal

void addFaceNormal(IXyz faceNormal)
Internal - Not recommended for use. Public as a side-effect of implementation method
add the given face normal to this vertex