0.1.8
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
21 # Time and Date types
22 Time, Date,
23
24 # Primitive type enumeration
25 PrimitiveType,
26
27 # Factory functions
28 make_int2, make_int3, make_int4,
29 make_vec2, make_vec3, make_vec4,
30 make_RGBcolor, make_RGBAcolor,
31 make_SphericalCoord,
32 make_Time, make_Date
33)
34
35# Export all for star imports
36__all__ = [
37 # Vector types
38 'vec2', 'vec3', 'vec4',
39 'int2', 'int3', 'int4',
40
41 # Color types
42 'RGBcolor', 'RGBAcolor',
43
44 # Coordinate types
45 'SphericalCoord',
46
47 # Time and Date types
48 'Time', 'Date',
49
50 # Primitive type enumeration
51 'PrimitiveType',
52
53 # Factory functions
54 'make_int2', 'make_int3', 'make_int4',
55 'make_vec2', 'make_vec3', 'make_vec4',
56 'make_RGBcolor', 'make_RGBAcolor',
57 'make_SphericalCoord',
58 'make_Time', 'make_Date'
59]