Skip to main content

Vector

Hierarchy

Constructors

constructor

new Vector(vector?)

Parameters

NameType
vectorPoint

Overrides

WrappingObj.constructor

Defined in

geom.ts:94

Accessors

Length

get Length(): number

Returns

number

Defined in

geom.ts:114


repr

get repr(): string

Returns

string

Defined in

geom.ts:98


wrapped

get wrapped(): Type

Returns

Type

Inherited from

WrappingObj.wrapped

Defined in

register.ts:39

set wrapped(newWrapped): void

Parameters

NameType
newWrappedType

Returns

void

Inherited from

WrappingObj.wrapped

Defined in

register.ts:44


x

get x(): number

Returns

number

Defined in

geom.ts:102


y

get y(): number

Returns

number

Defined in

geom.ts:106


z

get z(): number

Returns

number

Defined in

geom.ts:110

Methods

add

add(v): Vector

Parameters

NameType
vVector

Returns

Vector

Defined in

geom.ts:134


cross

cross(v): Vector

Parameters

NameType
vVector

Returns

Vector

Defined in

geom.ts:122


delete

delete(): void

Returns

void

Inherited from

WrappingObj.delete

Defined in

register.ts:54


dot

dot(v): number

Parameters

NameType
vVector

Returns

number

Defined in

geom.ts:126


equals

equals(other): boolean

Parameters

NameType
otherVector

Returns

boolean

Defined in

geom.ts:173


getAngle

getAngle(v): number

Parameters

NameType
vVector

Returns

number

Defined in

geom.ts:155


getCenter

getCenter(): Vector

Returns

Vector

Defined in

geom.ts:151


multiply

multiply(scale): Vector

Parameters

NameType
scalenumber

Returns

Vector

Defined in

geom.ts:138


normalize

normalize(): Vector

Returns

Vector

Defined in

geom.ts:146


normalized

normalized(): Vector

Returns

Vector

Defined in

geom.ts:142


projectToPlane

projectToPlane(plane): Vector

Parameters

NameType
planePlane

Returns

Vector

Defined in

geom.ts:159


rotate

rotate(angle, center?, direction?): Vector

Parameters

NameType
anglenumber
centerPoint
directionPoint

Returns

Vector

Defined in

geom.ts:185


sub

sub(v): Vector

Parameters

NameType
vVector

Returns

Vector

Defined in

geom.ts:130


toDir

toDir(): gp_Dir

Returns

gp_Dir

Defined in

geom.ts:181


toPnt

toPnt(): gp_Pnt

Returns

gp_Pnt

Defined in

geom.ts:177


toTuple

toTuple(): [number, number, number]

Returns

[number, number, number]

Defined in

geom.ts:118