Interface PositionedLight<T extends PositionedLight<T>>

Type Parameters:
T - The type of light to return in setters
All Known Subinterfaces:
IndirectLight<T>
All Known Implementing Classes:
AreaLight, PointLight

public interface PositionedLight<T extends PositionedLight<T>>
A light in the renderer that has a position
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Vector3d
     
    setPosition(double x, double y, double z)
    Sets the origin position of this light.
    default T
    setPosition(org.joml.Vector3dc position)
    Sets the origin position of this light.
  • Method Details

    • getPosition

      org.joml.Vector3d getPosition()
      Returns:
      The position of this light
    • setPosition

      default T setPosition(org.joml.Vector3dc position)
      Sets the origin position of this light.
      Parameters:
      position - The position of the light
    • setPosition

      T setPosition(double x, double y, double z)
      Sets the origin position of this light.
      Parameters:
      x - The x position of the light
      y - The y position of the light
      z - The z position of the light