Vector2 constructor

init

Constructs a new instance of Vector2

def __init__(self):
    ...

init

Initializes a new instance of the Vector2 struct.

def __init__(self, s):
    ...
ParameterTypeDescription
sfloatS.

init

Initializes a new instance of the Vector2 struct.

def __init__(self, s):
    ...
ParameterTypeDescription
sVector3S.

init

Initializes a new instance of the Vector2 struct.

def __init__(self, vec):
    ...
ParameterTypeDescription
vecFVector2Vector in float.

init

Initializes a new instance of the Vector2 struct.

def __init__(self, x, y):
    ...
ParameterTypeDescription
xfloatThe x coordinate.
yfloatThe y coordinate.

See Also