Line2D.create Method

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

Description

Creates a transient line.

Syntax

This is a static method.

returnValue = adsk.core.Line2D.create(startPoint, endPoint)
This is a static method.

#include <Core/Geometry/Line2D.h>

returnValue = adsk::core::Line2D::create(startPoint, endPoint);

Return Value

Type Description
Line2D Returns the new Line2D object or null if the creation failed.

Parameters

Name Type Description
startPoint Point2D The start point of the line
endPoint Point2D The end point of the line

Version

Introduced in version August 2014