LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vector2d.h
Go to the documentation of this file.
1 // Copyright 2017 Trimble Inc. All Rights Reserved.
2 
7 #ifndef SKETCHUP_GEOMETRY_VECTOR2D_H_
8 #define SKETCHUP_GEOMETRY_VECTOR2D_H_
9 
10 #include <SketchUpAPI/common.h>
11 #include <SketchUpAPI/geometry.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
30  struct SUVector2D* vector, const struct SUPoint2D* from, const struct SUPoint2D* to);
31 
44 SU_RESULT SUVector2DIsValid(const struct SUVector2D* vector, bool* valid);
45 
60  const struct SUVector2D* vector1, const struct SUVector2D* vector2, bool* parallel);
61 
76  const struct SUVector2D* vector1, const struct SUVector2D* vector2, bool* perpendicular);
77 
92  const struct SUVector2D* vector1, const struct SUVector2D* vector2, bool* same_direction);
93 
107  const struct SUVector2D* vector1, const struct SUVector2D* vector2, bool* equal);
108 
120 
130 SU_RESULT SUVector2DReverse(struct SUVector2D* vector);
131 
145  const struct SUVector2D* vector1, const struct SUVector2D* vector2, double* dot);
146 
160  const struct SUVector2D* vector1, const struct SUVector2D* vector2, double* cross);
161 
173 SU_RESULT SUVector2DIsUnitVector(const struct SUVector2D* vector, bool* is_unit_vector);
174 
186 SU_RESULT SUVector2DGetLength(const struct SUVector2D* vector, double* length);
187 
200 SU_RESULT SUVector2DSetLength(struct SUVector2D* vector, double length);
201 
215  const struct SUVector2D* vector1, const struct SUVector2D* vector2, double* angle);
216 
229  const struct SUTransformation2D* transform, struct SUVector2D* vector);
230 
231 #ifdef __cplusplus
232 } // extern "C"
233 #endif
234 
235 #endif // SKETCHUP_GEOMETRY_VECTOR2D_H_