LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
SketchUpAPI
geometry
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
29
SU_RESULT
SUVector2DCreate
(
30
struct
SUVector2D
* vector,
const
struct
SUPoint2D
* from,
const
struct
SUPoint2D
* to);
31
44
SU_RESULT
SUVector2DIsValid
(
const
struct
SUVector2D
* vector,
bool
* valid);
45
59
SU_RESULT
SUVector2DIsParallelTo
(
60
const
struct
SUVector2D
* vector1,
const
struct
SUVector2D
* vector2,
bool
* parallel);
61
75
SU_RESULT
SUVector2DIsPerpendicularTo
(
76
const
struct
SUVector2D
* vector1,
const
struct
SUVector2D
* vector2,
bool
* perpendicular);
77
91
SU_RESULT
SUVector2DIsSameDirectionAs
(
92
const
struct
SUVector2D
* vector1,
const
struct
SUVector2D
* vector2,
bool
* same_direction);
93
106
SU_RESULT
SUVector2DIsEqual
(
107
const
struct
SUVector2D
* vector1,
const
struct
SUVector2D
* vector2,
bool
* equal);
108
119
SU_RESULT
SUVector2DNormalize
(
struct
SUVector2D
* vector);
120
130
SU_RESULT
SUVector2DReverse
(
struct
SUVector2D
* vector);
131
144
SU_RESULT
SUVector2DDot
(
145
const
struct
SUVector2D
* vector1,
const
struct
SUVector2D
* vector2,
double
* dot);
146
159
SU_RESULT
SUVector2DCross
(
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
214
SU_RESULT
SUVector2DAngleBetween
(
215
const
struct
SUVector2D
* vector1,
const
struct
SUVector2D
* vector2,
double
* angle);
216
228
SU_RESULT
SUVector2DTransform
(
229
const
struct
SUTransformation2D
* transform,
struct
SUVector2D
* vector);
230
231
#ifdef __cplusplus
232
}
// extern "C"
233
#endif
234
235
#endif // SKETCHUP_GEOMETRY_VECTOR2D_H_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1