RectangleFeature class
矩形特征点类
Constructors
-
RectangleFeature({required Point<
double> topLeft, required Point<double> topRight, required Point<double> bottomLeft, required Point<double> bottomRight}) -
const
-
RectangleFeature.fromMap(Map<
String, dynamic> map) -
从Map创建RectangleFeature对象
factory
-
RectangleFeature.fromVertices(List<
Point< vertices)double> > -
从顶点列表创建四边形注释
顶点顺序:
左上, 右上, 右下, 左下factory
Properties
-
bottomLeft
→ Point<
double> -
final
-
bottomRight
→ Point<
double> -
final
- bounds → Rect
-
获取边界矩形
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
topLeft
→ Point<
double> -
final
-
topRight
→ Point<
double> -
final
-
vertices
→ List<
Point< double> > -
转换为顶点列表
返回顺序:
左上, 右上, 右下, 左下no setter
Methods
-
copy(
) → RectangleFeature - 复制当前矩形特征
-
getVertex(
int index) → Point< double> - 根据索引获取顶点
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
相等性比较
override