Class Vertex

    • Constructor Detail

      • Vertex

        public Vertex()
      • Vertex

        public Vertex​(Vertex src)
      • Vertex

        public Vertex​(int id,
                      boolean onCurve,
                      Vec3f texCoord)
      • Vertex

        public Vertex​(int id,
                      boolean onCurve,
                      float texCoordX,
                      float texCoordY,
                      float texCoordZ)
      • Vertex

        public Vertex​(Vec3f coord,
                      boolean onCurve)
      • Vertex

        public Vertex​(Vec2f coord,
                      boolean onCurve)
      • Vertex

        public Vertex​(float x,
                      float y,
                      boolean onCurve)
      • Vertex

        public Vertex​(float[] coordsBuffer,
                      int offset,
                      int length,
                      boolean onCurve)
      • Vertex

        public Vertex​(float x,
                      float y,
                      float z,
                      boolean onCurve)
    • Method Detail

      • setCoord

        public final void setCoord​(Vec3f coord)
      • setCoord

        public void setCoord​(Vec2f coord)
      • setCoord

        public final void setCoord​(float x,
                                   float y,
                                   float z)
      • setCoord

        public final void setCoord​(float x,
                                   float y)
      • setX

        public final void setX​(float x)
      • setY

        public final void setY​(float y)
      • setZ

        public final void setZ​(float z)
      • isOnCurve

        public final boolean isOnCurve()
      • setOnCurve

        public final void setOnCurve​(boolean onCurve)
      • getId

        public final int getId()
      • setId

        public final void setId​(int id)
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
        Parameters:
        obj - the Object to compare this Vertex with
        Returns:
        true if obj is a Vertex and not null, on-curve flag is equal and has same vertex- and tex-coords.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • getTexCoord

        public final Vec3f getTexCoord()
      • setTexCoord

        public final void setTexCoord​(Vec3f v)
      • setTexCoord

        public final void setTexCoord​(float s,
                                      float t,
                                      float p)
      • clone

        public Vertex clone()
        Returns:
        deep clone of this Vertex elements