Class: Plane
Memberof
M3D.M3DMath
Description
平面
Date
2022-1-12
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Table of contents
Constructors
Properties
Methods
- Clone
- Distance
- GetInsectPnt
- GetInsectPnt1
- Project
- Reflect
- ReflectionMatrix
- ToVector4
- Transformed
- copyFrom
- define
- transform
Constructors
constructor
• new Plane(): Plane
Returns
Description
构造函数
• new Plane(plane
): Plane
Parameters
Name | Type |
---|---|
plane | Plane |
Returns
Description
构造函数
• new Plane(plane
): Plane
Parameters
Name | Type |
---|---|
plane | Vector4 |
Returns
Description
构造函数
• new Plane(normal
, D
): Plane
Parameters
Name | Type |
---|---|
normal | Vector3 |
D | number |
Returns
Description
构造函数
• new Plane(normal
, point
): Plane
Parameters
Name | Type |
---|---|
normal | Vector3 |
point | Vector3 |
Returns
Description
构造函数
• new Plane(v0
, v1
, v2
): Plane
Parameters
Name | Type |
---|---|
v0 | Vector3 |
v1 | Vector3 |
v2 | Vector3 |
Returns
Description
构造函数
Properties
absNormal
• absNormal: Vector3
d
• d: number
normal
• normal: Vector3
Methods
Clone
▸ Clone(): Plane
Returns
Description
克隆Plane对象
Distance
▸ Distance(point
): number
Parameters
Name | Type |
---|---|
point | Vector3 |
Returns
number
Description
点到平面距离
GetInsectPnt
▸ GetInsectPnt(ray
, intersectPnt
): boolean
Parameters
Name | Type |
---|---|
ray | Ray |
intersectPnt | Vector3 |
Returns
boolean
Description
判断射线与面是否相交
GetInsectPnt1
▸ GetInsectPnt1(ray
, intersectPnt
): Vector3