com.threerings.tudey.data
Class TudeySceneModel.Vertex

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.data.TudeySceneModel.Vertex
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
TudeySceneModel

public static class TudeySceneModel.Vertex
extends DeepObject
implements Exportable

Represents a single vertex in a path or area.


Field Summary
 float x
          The vertex coordinates.
 float y
          The vertex coordinates.
 float z
          The vertex coordinates.
 
Constructor Summary
TudeySceneModel.Vertex()
           
 
Method Summary
 Vector2f createVector()
          Creates a vector from this vertex.
 void set(float x, float y, float z)
          Sets the coordinates of the vertex.
 void transform(Matrix4f matrix)
          Transforms this vertex in-place by the supplied matrix.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

@Editable(step=0.01,
          hgroup="c")
public float x
The vertex coordinates.


y

@Editable(step=0.01,
          hgroup="c")
public float y
The vertex coordinates.


z

@Editable(step=0.01,
          hgroup="c")
public float z
The vertex coordinates.

Constructor Detail

TudeySceneModel.Vertex

public TudeySceneModel.Vertex()
Method Detail

set

public void set(float x,
                float y,
                float z)
Sets the coordinates of the vertex.


createVector

public Vector2f createVector()
Creates a vector from this vertex.


transform

public void transform(Matrix4f matrix)
Transforms this vertex in-place by the supplied matrix.



Copyright © 2011. All Rights Reserved.