Vector4 constructor

init

Constructs a new instance of Vector4

def __init__(self):
    ...

init

Initializes a new instance of the Vector4 struct.

def __init__(self, vec):
    ...
ParameterTypeDescription
vecVector3Vec.

init

Initializes a new instance of the Vector4 struct.

def __init__(self, vec):
    ...
ParameterTypeDescription
vecFVector4Vec.

init

Initializes a new instance of the Vector4 struct.

def __init__(self, vec, w):
    ...
ParameterTypeDescription
vecVector3Vec.
wfloatThe width.

init

Initializes a new instance of the Vector4 struct.

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

init

Initializes a new instance of the Vector4 struct.

def __init__(self, x, y, z, w):
    ...
ParameterTypeDescription
xfloatThe x coordinate.
yfloatThe y coordinate.
zfloatThe z coordinate.
wfloatThe width.

See Also