Vector3D.create Method

Parent Object: Vector3D
Defined in namespace "adsk::core" and the header file is <Core/Geometry/Vector3D.h>

Description

Creates a 3D vector object. This object is created statically using the Vector3D.create method.

Syntax

This is a static method.

# Uses no optional arguments.
returnValue = adsk.core.Vector3D.create()

# Uses optional arguments.
returnValue = adsk.core.Vector3D.create(x, y, z)
This is a static method.

#include <Core/Geometry/Vector3D.h>

// Uses no optional arguments.
returnValue = adsk::core::Vector3D::create();

// Uses optional arguments.
returnValue = adsk::core::Vector3D::create(x, y, z);

Return Value

Type Description
Vector3D Returns the new vector.

Parameters

Name Type Description
x double The optional x value.

This is an optional argument whose default value is 0.0.
y double The optional y value.

This is an optional argument whose default value is 0.0.
z double The optional z value.

This is an optional argument whose default value is 0.0.

Samples

Name Description
moveFeatures.add Demonstrates the moveFeatures.add method.

Version

Introduced in version August 2014