🔨Calculate Corners

<table> Utilities.CalculateCorners(<CFrame> PartCFrame, <Vector3> PartSize)

Calculate the bounding box corners of a part.

Parameters

Name
Description
Type
Default
Optional

PartCFrame

The CFrame of the bounding box

CFrame

N/A

PartSize

The size of the bounding box

Vector3

N/A

Return

Name
Description
Type
Default
Optional

Corners

All of the on-screen corner points

table<Vector2>

N/A

Centre3D

The centre of the bounding box

Vector3

N/A

Centre

The on-screen centre of the bounding box

Vector2

N/A

TopLeft

The top-left on-screen corner

Vector2

N/A

TopRight

The top-right on-scren corner

Vector2

N/A

BottomLeft

The bottom-left on-screen corner

Vector2

N/A

BottomRight

The bottom-right on-screen corner

Vector2

N/A

Last updated