CreateVector

From SwinGame

CreateVector creates a new vector with values x and y, possibly with an inverted y. The inversion of the y value provides a convienient option for handling screen related vectors.

Where is it: SGSDK_PHYSICS

Contents

Languages

Pascal

function CreateVector(x,y : Single): Vector;
function CreateVector(x,y : Single; invertY : boolean): Vector;

C#

public Vector Physics.CreateVector(float x, float y);
public Vector Physics.CreateVector(float x, float y, bool invertY);

Visual Basic .NET

Public Function Physics.CreateVector(ByVal x As Single, ByVal y As Single) As Vector
Public Function Physics.CreateVector(ByVal x As Single, ByVal y As Single, ByVal invertY As Boolean) As Vector

Visual Basic 6

Public Function Physics.CreateVector(ByVal x As Single, ByVal y As Single, ByVal invertY As Boolean) As Vector
Public Function Physics.CreateVector_NoInvert(ByVal x As Single, ByVal y As Single) As Vector

Example

Also See