|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Plane
public class Plane
平面对象类。此平面为数学意义上无限延展的平面,主要用于三维模型进行截面投影和平面投影。
构造方法摘要 | |
---|---|
Plane()
构造一个新的 Plane 对象。 |
|
Plane(double cutA,
double cutB,
double cutC)
截距式 |
|
Plane(double A,
double B,
double C,
double D)
一般式 Ax+By+Cz+D=0 |
|
Plane(Plane pPlane,
java.lang.Boolean cloneable)
根据给定的 Plane 对象构造一个与其完全相同的新对象。 |
|
Plane(PlaneType type)
根据指定的平面类型常量构造一个 Plane 的新对象。 |
|
Plane(Point3D normal,
double distance)
由方向量和面距原点的距离构建面. |
|
Plane(Point3D normal,
Point3D point)
点法式 |
|
Plane(Point3D point0,
Point3D point1,
Point3D point2)
根据三个不重合的三维点构造平面 |
方法摘要 | |
---|---|
void |
dispose()
释放对象所占的资源。 |
double |
getDistance()
获取面距离原点的距离 |
double |
getDistance(Point3D vPoint)
获取指定的点到该平面的距离值。 |
Point3D |
getNormal()
获取面的法向量. |
void |
normalize()
对面进行标准化. |
boolean |
ptInPlane(Point3D point)
判断空间点是否在该平面上。 |
void |
setDistance(double distance)
设置面距离原点的距离. |
void |
setNormal(Point3D normal)
设置面的法向量. |
void |
setType(PlaneType type)
设置平面类型。 |
void |
translate(double offset)
平面沿着法线移动. |
boolean |
valid()
判断平面是否有效。 |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public Plane()
public Plane(Plane pPlane, java.lang.Boolean cloneable)
pPlane
- 指定的平面对象.cloneable
- 指定是否可克隆.public Plane(PlaneType type)
type
- 平面类型public Plane(Point3D normal, double distance)
normal
- 指定的三维点。distance
- 方向量和面距原点的距离。public Plane(Point3D normal, Point3D point)
normal
- 定义Plane对象的法线.point
- 法线在Plane上的垂足所对应的三维点.public Plane(Point3D point0, Point3D point1, Point3D point2)
point0
- 第一个三维点point1
- 第二个三维点point2
- 第三个三维点public Plane(double cutA, double cutB, double cutC)
cutA
- 与坐标轴相交的平面,在X轴上的值。cutB
- 与坐标轴相交的平面,在Y轴上的值。cutC
- 与坐标轴相交的平面,在Z轴上的值。public Plane(double A, double B, double C, double D)
A
- 一般方程式x的系数。B
- 一般方程式y的系数。C
- 一般方程式z的系数。D
- 一般方程式的常数。方法详细信息 |
---|
public boolean valid()
public void setType(PlaneType type)
type
- 平面类型。public boolean ptInPlane(Point3D point)
point
- 指定的三维点。
public void translate(double offset)
offset
- 平面沿着法线移动的距离。public double getDistance(Point3D vPoint)
vPoint
- 指定的三维点
public void normalize()
public Point3D getNormal()
public void setNormal(Point3D normal)
normal
- public double getDistance()
public void setDistance(double distance)
distance
- 面距离原点的距离.public void dispose()
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |