Class Lens

java.lang.Object
org.episteme.natural.physics.classical.waves.optics.Lens

public class Lens extends Object
Represents an optical lens (thin lens approximation).
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • Lens

      public Lens(Real focalLength, Point3D position, Real radius)
      Creates a lens.
      Parameters:
      focalLength - Positive for converging, negative for diverging
      position - Center of the lens
      radius - Radius of the lens aperture
  • Method Details

    • calculateImageDistance

      public Real calculateImageDistance(Real objectDistance)
      Helper method to calculate image distance using Thin Lens Equation: 1/f = 1/do + 1/di
      Parameters:
      objectDistance - distance from object to lens center (positive)
      Returns:
      image distance (positive = real, negative = virtual)
    • calculateMagnification

      public Real calculateMagnification(Real objectDistance, Real imageDistance)
      Magnification M = -di / do
    • getFocalLength

      public Real getFocalLength()
    • getPosition

      public Point3D getPosition()
    • getRadius

      public Real getRadius()