LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
transformation.h
Go to the documentation of this file.
1 // Copyright 2017 Trimble Inc., All rights reserved.
2 
7 #ifndef SKETCHUP_GEOMETRY_TRANSFORMATION_H_
8 #define SKETCHUP_GEOMETRY_TRANSFORMATION_H_
9 
10 #include <SketchUpAPI/geometry.h>
11 
12 #pragma pack(push, 8)
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif // __cplusplus
17 
38  struct SUTransformation* transform, const struct SUPoint3D* point,
39  const struct SUVector3D* normal);
40 
63  struct SUTransformation* transform, const struct SUPoint3D* point,
64  const struct SUVector3D* x_axis, const struct SUVector3D* y_axis,
65  const struct SUVector3D* z_axis);
66 
80  struct SUTransformation* transform, const struct SUVector3D* vector);
81 
92 SU_RESULT SUTransformationScale(struct SUTransformation* transform, double scale);
93 
108  struct SUTransformation* transform, double x_scale, double y_scale, double z_scale);
109 
124  struct SUTransformation* transform, const struct SUPoint3D* point, double scale);
125 
143  struct SUTransformation* transform, const struct SUPoint3D* point, double x_scale,
144  double y_scale, double z_scale);
145 
162  struct SUTransformation* transform, const struct SUPoint3D* point,
163  const struct SUVector3D* vector, double angle);
164 
184  struct SUTransformation* transform, const struct SUTransformation* t1,
185  const struct SUTransformation* t2, double weight);
186 
198 SU_RESULT SUTransformationIsIdentity(const struct SUTransformation* transform, bool* is_identity);
199 
213  const struct SUTransformation* transform, struct SUTransformation* inverse);
214 
227  const struct SUTransformation* transform, struct SUPoint3D* origin);
228 
241  const struct SUTransformation* transform, struct SUVector3D* x_axis);
242 
255  const struct SUTransformation* transform, struct SUVector3D* y_axis);
256 
269  const struct SUTransformation* transform, struct SUVector3D* z_axis);
270 
283  const struct SUTransformation* transform, double* z_rotation);
284 
299  const struct SUTransformation* transform1, const struct SUTransformation* transform2,
300  struct SUTransformation* out_transform);
301 
313 SU_RESULT SUTransformationIsMirrored(const struct SUTransformation* transform, bool* is_mirrored);
314 
315 #ifdef __cplusplus
316 } // end extern "C"
317 #endif // __cplusplus
318 
319 #pragma pack(pop)
320 
321 #endif // SKETCHUP_GEOMETRY_TRANSFORMATION_H_