LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vector3d.h
Go to the documentation of this file.
1 // Copyright 2017 Trimble Inc. All Rights Reserved.
2 
7 #ifndef SKETCHUP_GEOMETRY_VECTOR3D_H_
8 #define SKETCHUP_GEOMETRY_VECTOR3D_H_
9 
10 #include <SketchUpAPI/common.h>
11 #include <SketchUpAPI/geometry.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
30  struct SUVector3D* vector, const struct SUPoint3D* from, const struct SUPoint3D* to);
31 
44 SU_RESULT SUVector3DIsValid(const struct SUVector3D* vector, bool* valid);
45 
60  const struct SUVector3D* vector1, const struct SUVector3D* vector2, bool* parallel);
61 
76  const struct SUVector3D* vector1, const struct SUVector3D* vector2, bool* perpendicular);
77 
92  const struct SUVector3D* vector1, const struct SUVector3D* vector2, bool* same_direction);
93 
107  const struct SUVector3D* vector1, const struct SUVector3D* vector2, bool* equal);
108 
121  const struct SUVector3D* vector1, const struct SUVector3D* vector2, bool* less_than);
122 
134 
144 SU_RESULT SUVector3DReverse(struct SUVector3D* vector);
145 
159  const struct SUVector3D* vector1, const struct SUVector3D* vector2, double* dot);
160 
174  const struct SUVector3D* vector1, const struct SUVector3D* vector2, struct SUVector3D* cross);
175 
187 SU_RESULT SUVector3DIsUnitVector(const struct SUVector3D* vector, bool* is_unit_vector);
188 
200 SU_RESULT SUVector3DGetLength(const struct SUVector3D* vector, double* length);
201 
213 SU_RESULT SUVector3DSetLength(struct SUVector3D* vector, double length);
214 
228  const struct SUVector3D* vector1, const struct SUVector3D* vector2, double* angle);
229 
244  const struct SUVector3D* z_axis, struct SUVector3D* x_axis, struct SUVector3D* y_axis);
245 
258 SU_RESULT SUVector3DTransform(const struct SUTransformation* transform, struct SUVector3D* vector);
259 
278  const struct SUVector3D* vectors, const double* weights, const size_t size,
279  struct SUVector3D* vector);
280 
281 #ifdef __cplusplus
282 } // extern "C"
283 #endif
284 
285 #endif // SKETCHUP_GEOMETRY_VECTOR3D_H_