Class RayND

java.lang.Object
org.episteme.core.mathematics.geometry.RayND

public class RayND extends Object
Represents a ray in N-dimensional space defined by an origin and a direction.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • RayND

      public RayND(PointND origin, VectorND direction)
      Creates a new RayND.
      Parameters:
      origin - the origin point
      direction - the direction vector (will be normalized)
      Throws:
      IllegalArgumentException - if dimensions do not match
  • Method Details

    • getOrigin

      public PointND getOrigin()
    • getDirection

      public VectorND getDirection()
    • pointAt

      public PointND pointAt(Real t)
      Computes the point at distance t along the ray.
      Parameters:
      t - the distance parameter
      Returns:
      the point P = origin + t * direction