Class Vector3


  • public class Vector3
    extends Vector
    This class implements a 3-dimensional vector.
    • Constructor Detail

      • Vector3

        public Vector3()
        Creates a new Vector with 3 dimensions.
      • Vector3

        public Vector3​(double x,
                       double y,
                       double z)
        Creates a new Vector with 3 dimensions and initializes it.
        Parameters:
        x - Value of first dimension
        y - Value of second dimension
        z - Value of third dimension
    • Method Detail

      • set

        public void set​(double x,
                        double y,
                        double z)
        Sets the values of the vector.
        Parameters:
        x - Value of first dimension
        y - Value of second dimension
        z - Value of third dimension