LayOut C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
geometry.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Inc., All rights reserved.
2
7 #ifndef SKETCHUP_GEOMETRY_H_
8 #define SKETCHUP_GEOMETRY_H_
9
10 // includes
11 #include <SketchUpAPI/common.h>
12
13 #pragma pack(push, 8)
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif // __cplusplus
18
23 struct SUPoint2D {
24 double x;
25 double y;
26 };
27
32 struct SUVector2D {
33 double x;
34 double y;
35 };
36
41 struct SUPoint3D {
42 double x;
43 double y;
44 double z;
45 };
46
51 struct SUVector3D {
52 double x;
53 double y;
54 double z;
55 };
56
63 struct SUPlane3D {
64 double a;
65 double b;
66 double c;
67 double d;
68 };
69
76 struct SUBoundingBox3D {
77 struct SUPoint3D min_point;
78
79 struct SUPoint3D max_point;
80
81 };
82
88 struct SUAxisAlignedRect2D {
89 struct SUPoint2D upper_left;
90 struct SUPoint2D lower_right;
91 };
92
99 struct SURay3D {
100 struct SUPoint3D point;
101 struct SUVector3D normal;
102 };
103
126 struct SUTransformation {
127 double values[16];
128 };
129
139 struct SUTransformation2D {
140 double m11;
141 double m12;
142 double m21;
143 double m22;
144 double tx;
145 double ty;
146 };
147
148 #ifdef __cplusplus
149 } // end extern "C"
150 #endif // __cplusplus
151
152 #pragma pack(pop)
153
154 #endif // SKETCHUP_GEOMETRY_H_