0.1.8
Loading...
Searching...
No Matches
core.py File Reference

Go to the source code of this file.

Namespaces

namespace  pyhelios
 
namespace  pyhelios.validation
 
namespace  pyhelios.validation.core
 

Functions

 pyhelios.validation.core.validate_input (Dict[str, Callable] param_validators=None, Dict[str, Callable] type_coercions=None)
 Decorator for comprehensive parameter validation.
 
bool pyhelios.validation.core.is_finite_numeric (Any value)
 Check if value is a finite number (not NaN or inf).
 
 pyhelios.validation.core.validate_positive_value (Any value, str param_name="value", str function_name=None)
 Validate value is positive and finite.
 
 pyhelios.validation.core.validate_non_negative_value (Any value, str param_name="value", str function_name=None)
 Validate value is non-negative and finite.
 
'vec3' pyhelios.validation.core.coerce_to_vec3 (Any value, str param_name="parameter")
 Safely coerce list/tuple to vec3 with validation.
 
'vec2' pyhelios.validation.core.coerce_to_vec2 (Any value, str param_name="parameter")
 Safely coerce list/tuple to vec2 with validation.