Class Vector4


  • public class Vector4
    extends Vector
    This class implements a 4-dimensional vector.
    • Constructor Detail

      • Vector4

        public Vector4()
        Creates a new Vector with 4 dimensions.
      • Vector4

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

      • set

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