0.1.22
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 # Geographic location
26 Location,
27
28 # Primitive type enumeration
29 PrimitiveType,
30
31 # Factory functions
32 make_int2, make_int3, make_int4,
33 make_vec2, make_vec3, make_vec4,
34 make_RGBcolor, make_RGBAcolor,
35 make_SphericalCoord,
36 make_AxisRotation,
37 make_Time, make_Date,
38 make_Location,
39)
40
41# Export all for star imports
42__all__ = [
43 # Vector types
44 'vec2', 'vec3', 'vec4',
45 'int2', 'int3', 'int4',
46
47 # Color types
48 'RGBcolor', 'RGBAcolor',
49
50 # Coordinate types
51 'SphericalCoord',
52 'AxisRotation',
53
54 # Time and Date types
55 'Time', 'Date',
56
57 # Geographic location
58 'Location',
59
60 # Primitive type enumeration
61 'PrimitiveType',
62
63 # Factory functions
64 'make_int2', 'make_int3', 'make_int4',
65 'make_vec2', 'make_vec3', 'make_vec4',
66 'make_RGBcolor', 'make_RGBAcolor',
67 'make_SphericalCoord',
68 'make_AxisRotation',
69 'make_Time', 'make_Date',
70 'make_Location',
71]