Share

Acad.Vector2d Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Vector2d(x, y);

Group

ACAD Namespace

Parameters

Parameter Description
x Input X coordinate
y Input Y coordinate

Description

This class wraps the AcGeVector2d ObjectARX class. Vector2d represents a vector in 2D space. It can be viewed as a structure consisting of two doubles.

Properties

Name Type Description Condition
x number Returns the X property value Read-write
y number Returns the Y property value Read-write

Exception

Throws a TypeError object.

ACAD Namespace

Was this information helpful?