LayOut C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator 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 
30  struct SUPlane3D* plane, const struct SUPoint3D* point1, const struct SUPoint3D* point2,
31  const struct SUPoint3D* point3);
32 
46  struct SUPlane3D* plane, const struct SUPoint3D* point, const struct SUVector3D* normal);
47 
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 
117  const struct SUPlane3D* plane, const struct SUPoint3D* point, double* distance);
118 
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_