SketchUp C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Fields | Related Functions
SUPoint3D Struct Reference

Represents a point in 3-dimensional space. More...

#include <SketchUpAPI/geometry.h>

Data Fields

double x
 X coordinate.
 
double y
 Y coordinate.
 
double z
 Z coordinate.
 

Related Functions

(Note that these are not member functions.)

enum SUResult SUPoint3DGetEqual (const struct SUPoint3D *point1, const struct SUPoint3D *point2, bool *equal)
 Determines if two points are equal. More...
 
enum SUResult SUPoint3DLessThan (const struct SUPoint3D *point1, const struct SUPoint3D *point2, bool *less_than)
 Determines if point1 is less than point2. More...
 
enum SUResult SUPoint3DOffset (const struct SUPoint3D *point1, const struct SUVector3D *vector, struct SUPoint3D *point2)
 Creates a new point that is offset from another point. More...
 
enum SUResult SUPoint3DDistanceToSUPoint3D (const struct SUPoint3D *point1, const struct SUPoint3D *point2, double *distance)
 Gets the distance between two point objects. More...
 
enum SUResult SUPoint3DTransform (const struct SUTransformation *transform, struct SUPoint3D *point)
 Transforms the provided 3D point by applying the provided 3D transformation. More...
 

Detailed Description

Represents a point in 3-dimensional space.

Friends And Related Function Documentation

enum SUResult SUPoint3DDistanceToSUPoint3D ( const struct SUPoint3D point1,
const struct SUPoint3D point2,
double *  distance 
)
related

Gets the distance between two point objects.

Since
SketchUp 2018 M0, API 6.0
Parameters
[in]point1The first point object.
[in]point2The second point object.
[out]distanceThe distance between the two points.
Returns
enum SUResult SUPoint3DGetEqual ( const struct SUPoint3D point1,
const struct SUPoint3D point2,
bool *  equal 
)
related

Determines if two points are equal.

Since
SketchUp 2018 M0, API 6.0
Parameters
[in]point1The first point object.
[in]point2The second point object.
[out]equalWhether the two points are the same.
Returns
enum SUResult SUPoint3DLessThan ( const struct SUPoint3D point1,
const struct SUPoint3D point2,
bool *  less_than 
)
related

Determines if point1 is less than point2.

Since
SketchUp 2018 M0, API 6.0
Parameters
[in]point1The first point object.
[in]point2The second point object.
[out]less_thanWhether point1 is less than point2.
Returns
enum SUResult SUPoint3DOffset ( const struct SUPoint3D point1,
const struct SUVector3D vector,
struct SUPoint3D point2 
)
related

Creates a new point that is offset from another point.

Since
SketchUp 2018 M0, API 6.0
Parameters
[in]point1The point object.
[in]vectorThe offset vector object.
[out]point2The new point.
Returns
enum SUResult SUPoint3DTransform ( const struct SUTransformation transform,
struct SUPoint3D point 
)
related

Transforms the provided 3D point by applying the provided 3D transformation.

Since
SketchUp 2016, API 4.0
Parameters
[in]transformThe transformation to be applied.
[in,out]pointThe point to be transformed.
Returns

The documentation for this struct was generated from the following files: