Class Vertex3

java.lang.Object
javaforce.gl.Vertex3

public class Vertex3 extends Object
Store one vertex point (x,y,z) with texture coordinates (u,v).
  • Field Details

    • x

      public float x
    • y

      public float y
    • z

      public float z
    • u

      public float u
    • v

      public float v
  • Constructor Details

    • Vertex3

      public Vertex3()
    • Vertex3

      public Vertex3(float x, float y, float z)
    • Vertex3

      public Vertex3(float x, float y, float z, float u, float v)
  • Method Details

    • set

      public Vertex3 set(float x, float y, float z)
    • set

      public Vertex3 set(float x, float y, float z, float u, float v)
    • sub

      public void sub(Vertex3 a, Vertex3 b)
      this = a - b
    • cross

      public void cross(Vertex3 a, Vertex3 b)
      this = a X b
    • normalize

      public void normalize()
      normalize this vertex
    • length

      public float length()
    • lengthSquared

      public float lengthSquared()
    • scale

      public void scale(float s)
    • dot

      public float dot(Vertex3 v)
    • length

      public float length(Vertex3 v)