Skip to content

Class: Vector

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Vector(u, v): Vector

Parameters

NameType
unumber
vnumber

Returns

Vector

Defined in

Vector.ts:6

Properties

u

u: number

Defined in

Vector.ts:2


v

v: number

Defined in

Vector.ts:3


m

m: number

Defined in

Vector.ts:4

Methods

magnitude

magnitude(): number

向量值(这里指风速)

Returns

number

Defined in

Vector.ts:17


directionTo

directionTo(): number

流体方向 (这里指风向,范围为0-360º) N is 0º and E is 90º

Returns

number

Defined in

Vector.ts:26


directionFrom

directionFrom(): number

Angle in degrees (0 to 360º) From x--> N is 0º and E is 90º

Returns

number

Defined in

Vector.ts:40

Released under the MIT License.