PathEngine home previous: iShape::size()next: Interface iGround
Contents, API Reference, Interfaces, iShape, vertex

iShape::vertex()

Description

Helper function for obtaining coordinates of vertices in the shape.

Syntax

void vertex(int32_t index, int32_t& x, int32_t& y) const;

Parameters

index Index of the vertex for which to obtain coordinates.
x This will be set to the x coordinate of the vertex.
y This will be set to the y coordinate of the vertex.

Remarks

The coordinates are relative to the shape origin.
Note that the order of vertices may differ from the order used when initially creating the shape.

C# Mapping

void vertex(int index, out int x, out int y);

Java Mapping

void vertex(int index, int_OutArgument x, int_OutArgument y);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: Interface iGround