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
Vector2 | Return absolute coordinates |
|---|
getAbsolutePositionAtCoordinates
• getAbsolutePositionAtCoordinates(Coordinate): Vector2 other
Obtain absolute coordinates based on Coordinate
Parameters
Coordinate Vector2 | Usage: Absolute base point |
|---|
Returns
Vector2 | Return the absolute coordinates of Coordinate |
|---|
getAbsoluteSize
• getAbsoluteSize(): Vector2 other
Obtain absolute size
Returns
Vector2 | Return absolute size |
|---|
getLocalPositionAtCoordinates
• getLocalPositionAtCoordinates(Coordinate): Vector2 other
Obtain relative coordinates based on Coordinate
Parameters
Coordinate Vector2 | Usage: relative base point |
|---|
Returns
Vector2 | Return the relative coordinates of Coordinate |
|---|
getLocalSize
• getLocalSize(): Vector2 other
Get relative size
Returns
Vector2 | Return relative size |
|---|
isUnderLocation
• isUnderLocation(AbsoluteCoordinate): boolean other
Determine whether the Geometry is in Absolute Coordinate coordinates
Parameters
AbsoluteCoordinate Vector2 | Usage: coordinates |
|---|
Returns
boolean | Return whether it is in Absolute Coordinate coordinates |
|---|
Editor API