M3D / M3D / Shapes / PointerInfo
Class: PointerInfo
Memberof
M3D.Shapes
Description
PointerInfo
Author
zyc
Date
2023-10-17
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Table of contents
Constructors
Methods
- contains
- getEyeDir
- getLocalIntersectPoint
- getNearFarPoints
- reset
- setCamera
- setIntersection
- setLocalIntersectPoint
- setMousePosition
- setNearFarPoints
Constructors
constructor
• new PointerInfo(): PointerInfo
Returns
Description
构造函数
Methods
contains
▸ contains(node
): boolean
Parameters
Name | Type |
---|---|
node | Dragger |
Returns
boolean
Description
获取是否包含此拖拽器
getEyeDir
▸ getEyeDir(): Vector3
Returns
Description
获取观察方向
getLocalIntersectPoint
▸ getLocalIntersectPoint(): Vector3
Returns
Description
获取交点
getNearFarPoints
▸ getNearFarPoints(): Vector3
[]
Returns
Vector3
[]
Description
获取远近点
reset
▸ reset(): void
Returns
void
Description
重置
setCamera
▸ setCamera(camera
): void
Parameters
Name | Type |
---|---|
camera | Camera |
Returns
void
Description
设置相机
setIntersection
▸ setIntersection(nodePath
, intersectionPoint
): void
Parameters
Name | Type |
---|---|
nodePath | Dragger |
intersectionPoint | Vector3 |
Returns
void
Description
设置交点
setLocalIntersectPoint
▸ setLocalIntersectPoint(intersectPoint
): void
Parameters
Name | Type |
---|---|
intersectPoint | Vector3 |
Returns
void
Description
设置交点
setMousePosition
▸ setMousePosition(pixelX
, pixelY
): void
Parameters
Name | Type |
---|---|
pixelX | number |
pixelY | number |
Returns
void
Description
设置鼠标点
setNearFarPoints
▸ setNearFarPoints(nearPoint
, farPoint
): void
Parameters
Name | Type |
---|---|
nearPoint | Vector3 |
farPoint | Vector3 |
Returns
void
Description
设置远近点