Class UV

java.lang.Object
com.ijurnove.cpu3d.UV

public class UV extends Object
UV coordinates represent a point on a texture. Each coordinate ranges from 0-1: (0,0) would be the top left of a texture, and (1,1) would be the bottom right.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UV(double u, double v)
    Constructs a new UV with the given values.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a copy of this UV.
    double
    u()
    Returns the U coordinate.
    double
    v()
    Returns the V coordinate.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UV

      public UV(double u, double v)
      Constructs a new UV with the given values.
      Parameters:
      u - the U coordinate
      v - the V coordinate
  • Method Details

    • copy

      public UV copy()
      Returns a copy of this UV.
      Returns:
      a copy of this UV
    • u

      public double u()
      Returns the U coordinate.
      Returns:
      the U coordinate
    • v

      public double v()
      Returns the V coordinate.
      Returns:
      the V coordinate