Point3Like
Point3Like =
Point3d| [number,number,number] | [number,number] | {x:number;y:number;z?:number; }
Any value that can be interpreted as a 3D point.
Most API methods that accept a position take a Point3Like,
letting you pass either a Point3d instance or a plain
[x, y, z] tuple — whichever is more convenient. All
coordinates are in inches (SketchUp’s internal unit).
Example
Section titled “Example”let { Transformation } = SketchUpApi;
// Translation accepts a Point3Like, so both of// these do the same thing:let moveA = Transformation.translation( [10, 20, 0]);let moveB = Transformation.translation( new SketchUpApi.Point3d(10, 20, 0));console.log(moveA.origin.toArray());// => [10, 20, 0]console.log(moveB.origin.toArray());// => [10, 20, 0]