跳到主要内容
版本:v10.0

M3D / M3D / Shapes / AlgorithmHelper

Class: AlgorithmHelper

M3D.Shapes.AlgorithmHelper

Memberof

M3D.Shapes

Description

计算帮助类

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AlgorithmHelper(): AlgorithmHelper

Returns

AlgorithmHelper

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

NameType
fromVector3
toVector3
countnumber
midVecVector3[]

Returns

boolean

Description

计算虚线划分数据


caculateFPS

caculateFPS(): void

Returns

void

Description

计算FPS