rayoptics.util package
package supplying utility functions for math and numpy support
The util
subpackage provides miscellaneous functions for
geometric calculations, color calculations and anything else that doesn’t
have an obvious home. These include:
miscellaneous math functions,
misc_math
line_intersection
support for color handling,
colors
colour_system
spectral line conversion with
get_wavelength()
inspectral_lines
a 2D dict with M x N keys,
dict2d
- str_to_class(module_name: str, class_name: str, **kwargs)[source]
Return a class instance from a string reference
Submodules
- rayoptics.util.colors module
- rayoptics.util.colour_system module
- rayoptics.util.dict2d module
- rayoptics.util.line_intersection module
- rayoptics.util.misc_math module
infinity_guard()
is_kinda_big()
normalize()
distance_sqr_2d()
perpendicular_distance_2d()
perpendicular_to_radial()
perpendicular_to_line()
perpendicular_from_origin()
projected_point_on_line()
projected_point_on_radial_line()
projected_point_on_radial_line_full()
euler2opt()
euler2rot3d()
isanumber()
transpose()
circle_intersection_area()
compute_tangent_point_to_circle()
- rayoptics.util.rgb2mpl module
- rayoptics.util.rgbtable module