Package org.joml

Class Rayf

    • Field Detail

      • oX

        public float oX
        The x coordinate of the ray's origin.
      • oY

        public float oY
        The y coordinate of the ray's origin.
      • oZ

        public float oZ
        The z coordinate of the ray's origin.
      • dX

        public float dX
        The x coordinate of the ray's direction.
      • dY

        public float dY
        The y coordinate of the ray's direction.
      • dZ

        public float dZ
        The z coordinate of the ray's direction.
    • Constructor Detail

      • Rayf

        public Rayf​()
        Create a new Rayf with origin (0, 0, 0) and no direction.
      • Rayf

        public Rayf​(Rayf source)
        Create a new Rayf as a copy of the given source.
        Parameters:
        source - the Rayf to copy from
      • Rayf

        public Rayf​(Vector3fc origin,
                    Vector3fc direction)
        Create a new Rayf with the given origin and direction.
        Parameters:
        origin - the origin of the ray
        direction - the direction of the ray
      • Rayf

        public Rayf​(float oX,
                    float oY,
                    float oZ,
                    float dX,
                    float dY,
                    float dZ)
        Create a new Rayf with the given origin and direction.
        Parameters:
        oX - the x coordinate of the ray's origin
        oY - the y coordinate of the ray's origin
        oZ - the z coordinate of the ray's origin
        dX - the x coordinate of the ray's direction
        dY - the y coordinate of the ray's direction
        dZ - the z coordinate of the ray's direction