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
plane3d.h
Go to the documentation of this file.
1 // Copyright 2017 Trimble Inc., All rights reserved.
2
7 #ifndef SKETCHUP_GEOMETRY_PLANE3D_H_
8 #define SKETCHUP_GEOMETRY_PLANE3D_H_
9
10 #include <SketchUpAPI/geometry.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif // __cplusplus
15
29 SU_RESULT SUPlane3DSetWithPoints(
30 struct SUPlane3D* plane, const struct SUPoint3D* point1, const struct SUPoint3D* point2,
31 const struct SUPoint3D* point3);
32
45 SU_RESULT SUPlane3DSetWithPointAndNormal(
46 struct SUPlane3D* plane, const struct SUPoint3D* point, const struct SUVector3D* normal);
47
61 SU_RESULT SUPlane3DSetWithCoefficients(
62 struct SUPlane3D* plane, double a, double b, double c, double d);
63
75 SU_RESULT SUPlane3DGetPosition(const struct SUPlane3D* plane, struct SUPoint3D* position);
76
88 SU_RESULT SUPlane3DGetNormal(const struct SUPlane3D* plane, struct SUVector3D* normal);
89
102 SU_RESULT SUPlane3DIsOn(const struct SUPlane3D* plane, const struct SUPoint3D* point, bool* is_on);
103
116 SU_RESULT SUPlane3DDistanceTo(
117 const struct SUPlane3D* plane, const struct SUPoint3D* point, double* distance);
118
131 SU_RESULT SUPlane3DProjectTo(
132 const struct SUPlane3D* plane, const struct SUPoint3D* point,
133 struct SUPoint3D* projected_point);
134
147 SU_RESULT SUPlane3DTransform(const struct SUTransformation* transform, struct SUPlane3D* plane);
148
149 #ifdef __cplusplus
150 } // end extern "C"
151 #endif // __cplusplus
152
153 #endif // SKETCHUP_GEOMETRY_PLANE3D_H_