Skip to content
Geometry

界面 / 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坐标下