Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CurveEntity Class Reference

Inherits ScriptObject.

Public Member Functions

 CurveEntity ()
 
Number getLength ()
 
Number getRadius ()
 
Boolean isBigArc ()
 
Number getSweep ()
 
 reverse ()
 
 translate (Vector offset)
 

Static Public Member Functions

static CurveEntity getLine (Vector start, Vector end)
 
static CurveEntity getArc (Vector start, Vector end, Vector center, Boolean clockwise)
 

Public Attributes

Boolean arc
 True for arc. Otherwise a line.
 
Boolean clockwise
 The direction of the arc. Clockwise or counterclockwise.
 
Vector start
 The start position. The Z coordinate is always 0.
 
Vector center
 The center for an arc. The Z coordinate is always 0.
 
Vector end
 The end position. The Z coordinate is always 0.
 

Detailed Description

Curve entity.

Since
41366

Constructor & Destructor Documentation

◆ CurveEntity()

Constructs a Curve entity.

Member Function Documentation

◆ getArc()

static CurveEntity getArc ( Vector  start,
Vector  end,
Vector  center,
Boolean  clockwise 
)
static

Makes an arc entity.

◆ getLength()

Number getLength ( )

Returns the length of the entity.

◆ getLine()

static CurveEntity getLine ( Vector  start,
Vector  end 
)
static

Makes a line entity.

◆ getRadius()

Number getRadius ( )

Returns the radius of the arc entity as defined by the end and center.

◆ getSweep()

Number getSweep ( )

Returns the sweep for the arc entity.

◆ isBigArc()

Boolean isBigArc ( )

Returns true if the arc entity if big. Sweep > 180deg.

◆ reverse()

reverse ( )

Reverses the entity.

◆ translate()

translate ( Vector  offset)

Translates the entity. Z is ignored.



Generated by Autodesk, Inc. 19 April 2024
Copyright (c) 2012-2024 by Autodesk, Inc.