PyHelios 0.1.11
Loading...
Searching...
No Matches
types.py
Go to the documentation of this file.
1"""
2Convenient imports for all PyHelios vector types and factory functions.
3
4This module provides all vector types, color types, and factory functions
5for easy star import usage as documented in CLAUDE.md:
6
7 from pyhelios.types import * # All vector types: vec3, RGBcolor, etc.
8"""
9
10from .wrappers.DataTypes import (
11 # Vector types
12 vec2, vec3, vec4,
13 int2, int3, int4,
14
15 # Color types
16 RGBcolor, RGBAcolor,
17
18 # Coordinate types
19 SphericalCoord,
20 AxisRotation,
21
22 # Time and Date types
23 Time, Date,
24
25 # Primitive type enumeration
26 PrimitiveType,
27
28 # Factory functions
29 make_int2, make_int3, make_int4,
30 make_vec2, make_vec3, make_vec4,
31 make_RGBcolor, make_RGBAcolor,
32 make_SphericalCoord,
33 make_AxisRotation,
34 make_Time, make_Date
35)
36
37# Export all for star imports
38__all__ = [
39 # Vector types
40 'vec2', 'vec3', 'vec4',
41 'int2', 'int3', 'int4',
42
43 # Color types
44 'RGBcolor', 'RGBAcolor',
45
46 # Coordinate types
47 'SphericalCoord',
48 'AxisRotation',
49
50 # Time and Date types
51 'Time', 'Date',
52
53 # Primitive type enumeration
54 'PrimitiveType',
55
56 # Factory functions
57 'make_int2', 'make_int3', 'make_int4',
58 'make_vec2', 'make_vec3', 'make_vec4',
59 'make_RGBcolor', 'make_RGBAcolor',
60 'make_SphericalCoord',
61 'make_AxisRotation',
62 'make_Time', 'make_Date'
63]