Skip to content
Geometry

UI / Geometry

Geometry Class

Geometric coordinate information

Table of contents

Methods

getAbsolutePosition(): Vector2 other
Obtain absolute coordinates
getAbsolutePositionAtCoordinates(Coordinate: Vector2): Vector2 other
Obtain absolute coordinates based on Coordinate
getAbsoluteSize(): Vector2 other
Obtain absolute size
getLocalPositionAtCoordinates(Coordinate: Vector2): Vector2 other
Obtain relative coordinates based on Coordinate
getLocalSize(): Vector2 other
Get relative size
isUnderLocation(AbsoluteCoordinate: Vector2): boolean other
Determine whether the Geometry is in Absolute Coordinate coordinates

Default Construction

Methods

getAbsolutePosition

getAbsolutePosition(): Vector2 other

Obtain absolute coordinates

Returns

Vector2Return absolute coordinates

getAbsolutePositionAtCoordinates

getAbsolutePositionAtCoordinates(Coordinate): Vector2 other

Obtain absolute coordinates based on Coordinate

Parameters

Coordinate Vector2Usage: Absolute base point

Returns

Vector2Return the absolute coordinates of Coordinate

getAbsoluteSize

getAbsoluteSize(): Vector2 other

Obtain absolute size

Returns

Vector2Return absolute size

getLocalPositionAtCoordinates

getLocalPositionAtCoordinates(Coordinate): Vector2 other

Obtain relative coordinates based on Coordinate

Parameters

Coordinate Vector2Usage: relative base point

Returns

Vector2Return the relative coordinates of Coordinate

getLocalSize

getLocalSize(): Vector2 other

Get relative size

Returns

Vector2Return relative size

isUnderLocation

isUnderLocation(AbsoluteCoordinate): boolean other

Determine whether the Geometry is in Absolute Coordinate coordinates

Parameters

AbsoluteCoordinate Vector2Usage: coordinates

Returns

booleanReturn whether it is in Absolute Coordinate coordinates