SRL Archive - RS3 Help

TBox to TPA?


Rich

2013-12-18 11:22:19

So I've got a TBox, and I want to take all of the points contained in that box and store them to a TPA. It's probably really easy and I'm just being thick, but I've searched but I just can't figure out how to do it.

Cheers guys!

footballjds

2013-12-18 11:28:37

From: Rich
So I've got a TBox, and I want to take all of the points contained in that box and store them to a TPA. It's probably really easy and I'm just being thick, but I've searched but I just can't figure out how to do it.

Cheers guys!


(*
TBox.createTPA
~~~~~~~~~~~~~~

.. code-block:: pascal

function TBox.createTPA: TPointArray;

Creates and returns a TPointArray of the TBox.

.. note::

- by Olly

Example:

.. code-block:: pascal

TPA := box.createTPA;

*)
function TBox.createTPA: TPointArray;
begin
result := tpaFromBox(self);
end;

Rich

2013-12-18 11:31:11

Urgh, I knew it was going to be something really simple. Thanks man!

footballjds

2013-12-18 11:42:34

From: Rich
Urgh, I knew it was going to be something really simple. Thanks man!


sure thing, whenever I want to find something I just open the relevant include in SRL :)