Core API Reference: Shape Geometry

From Color Infection Wiki

Jump to: navigation, search


Contents


Get Circle Radius

Get the radius of a circle shape.

Input Parameters:

The Circle
the circle

Output Parameters:

The Radius
the radius of the input circle
Get Rectangle Size

Get the size (width and height) of a rectangle shape.

Input Parameters:

The Rectangle
the rectangle

Output Parameters:

Width
the width of the input rectangle
Height
the height of the input rectangle
Get Poly Shape Vertexex Count

Get the vertexes count of a poly shape (polygons and polylines).

Input Parameters:

The Poly Shape
the poly shape

Output Parameters:

Vertex Count
number of vertexes of the input poly shape
Get Poly Shape Vertex Local Position

Get local position of the vertex at the specified index of a poly shape

Input Parameters:

The Poly Shape
the poly shape
Vertex Index
which vertex to get

Output Parameters:

Local X
the x component of the local position of the specified vertex
Local Y
the y component of the local position of the specified vertex
Get Poly Shape Vertex World Position

Get world position of the vertex at the specified index of a poly shape

Input Parameters:

The Poly Shape
the poly shape
Vertex Index
which vertex to get

Output Parameters:

World X
the x component of the world position of the specified vertex
World Y
the y component of the world position of the specified vertex
Personal tools