CircularHole¶
- class marxs.math.geometry.CircularHole(kwargs)[source]¶
Bases:
PlaneWithHoleBase class for geometrically flat optical elements.
Methods Summary
inner_display(display)inner_shape(display)intersect(dir, pos)Calculate the intersection point between a ray and the element
outer_display(display)Return values in Euclidean space.
outer_shape(display)Methods Documentation
- intersect(dir, pos)[source]¶
Calculate the intersection point between a ray and the element
Parameters¶
- dir
numpy.ndarrayof shape (N, 4) homogeneous coordinates of the direction of the ray
- pos
numpy.ndarrayof shape (N, 4) homogeneous coordinates of a point on the ray
Returns¶
- intersectboolean array of length N
Trueif an intersection point is found.- interpos
numpy.ndarrayof shape (N, 4) homogeneous coordinates of the intersection point. Values are set to
np.nanif no intersection point is found.- interpos_local
numpy.ndarrayof shape (N, 2) y and z coordinates in the coordinate system of the active plane (not normalized to the dimensions of the element in question, but in absolute units).
- dir