Class: Vector ¶
Table of contents ¶
Constructors ¶
Properties ¶
Methods ¶
Constructors ¶
constructor ¶
• new Vector(u
, v
): Vector
Parameters ¶
Name | Type |
---|---|
u | number |
v | number |
Returns ¶
Defined in ¶
Properties ¶
u ¶
• u: number
Defined in ¶
v ¶
• v: number
Defined in ¶
m ¶
• m: number
Defined in ¶
Methods ¶
magnitude ¶
▸ magnitude(): number
向量值(这里指风速)
Returns ¶
number
Defined in ¶
directionTo ¶
▸ directionTo(): number
流体方向 (这里指风向,范围为0-360º) N is 0º and E is 90º
Returns ¶
number
Defined in ¶
directionFrom ¶
▸ directionFrom(): number
Angle in degrees (0 to 360º) From x--> N is 0º and E is 90º
Returns ¶
number