Interface OpticalElement

All Known Implementing Classes:
SphericalMirror

public interface OpticalElement
Interface representing an element in an optical system (lens, mirror, etc.).
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the focal length of this element.
    trace(LightRay incoming)
    Traces a light ray through this optical element.
  • Method Details

    • trace

      LightRay trace(LightRay incoming)
      Traces a light ray through this optical element.
      Parameters:
      incoming - The incoming light ray.
      Returns:
      The outgoing light ray after interaction with the element, or null if absorbed/blocked.
    • getFocalLength

      Real getFocalLength()
      Returns the focal length of this element.
      Returns:
      The focal length (positive for converging, negative for diverging).