Leaper Vision Toolkit
中文 / English 2.x
结构体 | 枚举
LPVGeomLib 模块参考手册

LPV 几何库,提供几何形状相关的数据定义、计算和测量功能。 更多...

结构体

interface  ILArc
 该接口对应一个圆弧(LArc对象) 更多...
 
interface  ILCircle
 该接口对应一个圆形(LCircle对象)。 更多...
 
interface  ILEllipse
 该接口对应一个椭圆(LEllipse对象) 更多...
 
interface  ILLine
 该接口对应一条直线(LLine对象)。 更多...
 
interface  ILPoint
 该接口对应一个点(LPoint对象)。 更多...
 
interface  ILPoints
 该接口对应一组点的集合(LPoints对象)。 更多...
 
interface  ILPolygon
 该接口对应一个多边形(LPolygon对象) 更多...
 
interface  ILRect
 该接口对应一个可旋转的矩形(LRect对象) 更多...
 
interface  ILTransform
 该接口对应一个 2D 坐标系。 更多...
 
class  LArc
 
class  LCircle
 
class  LEllipse
 
class  LLine
 
class  LPoint
 
class  LPoints
 
class  LPolygon
 
class  LRect
 
class  LTransform
 

枚举

enum  LPVIntersectType {
  LPVIntersectUnbounded = 0 , LPVIntersectBoundedLeft = 1 , LPVIntersectBounded = 2 , LPVIntersectBoundedRight = 3 ,
  LPVIntersectNone = 4 , LPVIntersectBoundedPartial = 1
}
 定义相交的类型 更多...
 
enum  LPVPointTestResult { LPVPointTestInside = 0 , LPVPointTestOutside = 1 , LPVPointTestOnEdge = 2 }
 表示点判断的结果 更多...
 

详细描述

LPV 几何库,提供几何形状相关的数据定义、计算和测量功能。

该模块用于提供几何形状的数据定义及其计算、测量、显示等功能。 使用该模块中的类和算法,需按照以下方式引用该模块:

示例代码

枚举类型说明

◆ LPVIntersectType

定义相交的类型

枚举值
LPVIntersectUnbounded 

两个几何形状相交,但交点不在任一形状上

LPVIntersectBoundedLeft 

两个几何形状相交,交点在第一个形状上(当前的),但不在第二个形状上(输入的)

LPVIntersectBounded 

两个几何形状相交,交点在两个形状上

LPVIntersectBoundedRight 

两个几何形状相交,交点在第二个形状上(输入的),但不在第一个形状上(当前的)

LPVIntersectNone 

不相交,如两条平行线

LPVIntersectBoundedPartial 

两个几何形状相交,交点在任意一个形状上。当相交只存在一方有意义的边界时使用。

◆ LPVPointTestResult

表示点判断的结果

枚举值
LPVPointTestInside 

点在形状内部

LPVPointTestOutside 

点在形状外部

LPVPointTestOnEdge 

点在形状的边上