界面 / Geometry
Geometry Class
几何坐标信息
Table of contents
Methods
getAbsolutePosition(): Vector2 client |
---|
获取绝对坐标 |
getAbsolutePositionAtCoordinates(Coordinate : Vector2 ): Vector2 client |
获取基于Coordinate的绝对坐标 |
getAbsoluteSize(): Vector2 client |
获取绝对大小 |
getLocalPositionAtCoordinates(Coordinate : Vector2 ): Vector2 client |
获取基于Coordinate的相对坐标 |
getLocalSize(): Vector2 client |
获取相对大小 |
isUnderLocation(AbsoluteCoordinate : Vector2 ): boolean client |
判断该Geometry 是否在AbsoluteCoordinate坐标下 |
默认构造
Methods
getAbsolutePosition
• getAbsolutePosition(): Vector2
client
获取绝对坐标
Returns
Vector2 | 返回绝对坐标 |
---|
getAbsolutePositionAtCoordinates
• getAbsolutePositionAtCoordinates(Coordinate
): Vector2
client
获取基于Coordinate的绝对坐标
Parameters
Coordinate Vector2 | 绝对基础点 |
---|
Returns
Vector2 | 返回Coordinate的绝对坐标 |
---|
getAbsoluteSize
• getAbsoluteSize(): Vector2
client
获取绝对大小
Returns
Vector2 | 返回绝对大小 |
---|
getLocalPositionAtCoordinates
• getLocalPositionAtCoordinates(Coordinate
): Vector2
client
获取基于Coordinate的相对坐标
Parameters
Coordinate Vector2 | 相对基础点 |
---|
Returns
Vector2 | 返回Coordinate的相对坐标 |
---|
getLocalSize
• getLocalSize(): Vector2
client
获取相对大小
Returns
Vector2 | 返回相对大小 |
---|
isUnderLocation
• isUnderLocation(AbsoluteCoordinate
): boolean
client
判断该Geometry 是否在AbsoluteCoordinate坐标下
Parameters
AbsoluteCoordinate Vector2 | 坐标 |
---|
Returns
boolean | 返回是否在AbsoluteCoordinate坐标下 |
---|