org.opensourcephysics.display2d
Class SurfaceVertex

java.lang.Object
  extended by org.opensourcephysics.display2d.SurfaceVertex

public final class SurfaceVertex
extends java.lang.Object

The class SurfaceVertex represents a vertex in 3D space.

Since:
1.10
Version:
1.30b1, 17 May 1997
Author:
Yanto Suryono

Field Summary
 double x
          The x coordinate
 double y
          The y coordinate
 double z
          The z coordinate
 
Method Summary
 boolean isInvalid()
          Determines whether this vertex is invalid, i.e has invalid coordinates value.
 void project()
           
 java.awt.Point projection()
          Gets the 2D projection of the vertex.
 void transform()
          Transforms coordinate values to fit the scaling factor of the projector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x
The x coordinate


y

public double y
The y coordinate


z

public double z
The z coordinate

Method Detail

isInvalid

public final boolean isInvalid()
Determines whether this vertex is invalid, i.e has invalid coordinates value.

Returns:
true if this vertex is invalid

projection

public final java.awt.Point projection()
Gets the 2D projection of the vertex.

Returns:
the 2D projection

project

public final void project()

transform

public final void transform()
Transforms coordinate values to fit the scaling factor of the projector. This routine is only used for transforming center of projection in Surface Plotter.