Class SurfaceVertex

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

public final class SurfaceVertex extends Object
The class SurfaceVertex represents a vertex in 3D space.
Since:
1.10
Version:
1.30b1, 17 May 1997
Author:
Yanto Suryono
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The x coordinate
    double
    The y coordinate
    double
    The z coordinate
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Determines whether this vertex is invalid, i.e has invalid coordinates value.
    final void
     
    final Point
    Gets the 2D projection of the vertex.
    final void
    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 Details

    • x

      public double x
      The x coordinate
    • y

      public double y
      The y coordinate
    • z

      public double z
      The z coordinate
  • Method Details

    • 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 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.