Vector4 constructor

__init__(self)

Constructs a new instance of Vector4


def __init__(self):
    ...

__init__(self, vec)

Initializes a new instance of the Vector4 struct.


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

__init__(self, vec)

Initializes a new instance of the Vector4 struct.


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

__init__(self, vec, w)

Initializes a new instance of the Vector4 struct.


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

__init__(self, x, y, z)

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__(self, x, y, z, w)

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