AbstractSphericalSag#
- class optika.sags.AbstractSphericalSag(*, transformation=None, parameters_slope_error=None, parameters_roughness=None, parameters_microroughness=None)[source]#
Bases:
AbstractSagBase class for all sag functions that can be approximated as a sphere.
Attributes
The curvature of the spherical surface.
The microroughness parameters for this sag profile.
The roughness parameters for this sag profile.
The slope error parameters for this sag profile.
The radius of curvature of this sphere.
The array shape of this object.
The transformation between the surface coordinate system and the sag coordinate system.
Methods
__init__(*[, transformation, ...])intercept(rays)A set of new rays with the same direction as the input rays, but with the
optika.rays.RayVectorArray.positionupdated to their interception point with this sag function.normal(position)The vector perpendicular to the surface at the given position.
propagate_rays(rays)For the given input rays, calculate new rays based off of their interation with this object.
to_string([prefix])Public-facing version of the
__repr__method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.Inheritance Diagram

- Parameters:
transformation (None | AbstractTransformation)
parameters_slope_error (None | SlopeErrorParameters)
parameters_roughness (None | RoughnessParameters)
parameters_microroughness (None | RoughnessParameters)
- intercept(rays)#
A set of new rays with the same direction as the input rays, but with the
optika.rays.RayVectorArray.positionupdated to their interception point with this sag function.- Parameters:
rays (AbstractRayVectorArray) – input rays that will intercept this sag function
- Return type:
- abstractmethod normal(position)#
The vector perpendicular to the surface at the given position.
- Parameters:
position (AbstractCartesian3dVectorArray) – The location on the surface to evaluate the normal vector
- Return type:
- propagate_rays(rays)#
For the given input rays, calculate new rays based off of their interation with this object.
- Parameters:
rays (AbstractRayVectorArray) – a set of input rays that will interact with this object
- Return type:
- to_string(prefix=None)#
Public-facing version of the
__repr__method that allows for defining a prefix string, which can be used to calculate how much whitespace to add to the beginning of each line of the result.
- property curvature: Quantity | AbstractScalar#
The curvature of the spherical surface. Equal to the reciprocal of
radius.
- parameters_microroughness: None | RoughnessParameters = None#
The microroughness parameters for this sag profile.
- parameters_roughness: None | RoughnessParameters = None#
The roughness parameters for this sag profile.
- parameters_slope_error: None | SlopeErrorParameters = None#
The slope error parameters for this sag profile.
- abstract property radius: Quantity | AbstractScalar#
The radius of curvature of this sphere.
- transformation: None | AbstractTransformation = None#
The transformation between the surface coordinate system and the sag coordinate system.