M3D / M3D / Shapes / AlgorithmHelper
Class: AlgorithmHelper
Memberof
M3D.Shapes
Description
计算帮助类
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AlgorithmHelper(): AlgorithmHelper
Returns
Properties
averageFPS
▪ Static
averageFPS: number
currentDate
▪ Static
currentDate: Date
frameCount
▪ Static
frameCount: number
lastLogTime
▪ Static
lastLogTime: number
Methods
caculateDashedLine
▸ caculateDashedLine(from
, to
, count
, midVec
): boolean
Parameters
Name | Type |
---|---|
from | Vector3 |
to | Vector3 |
count | number |
midVec | Vector3 [] |
Returns
boolean
Description
计算虚线划分数据
caculateFPS
▸ caculateFPS(): void
Returns
void
Description
计算FPS