Vector3 constructor

__init__(self)

Constructs a new instance of Vector3


def __init__(self):
    ...

__init__(self, vec)

Initializes a new instance of the Vector3 struct.


def __init__(self, vec):
    ...
ParameterTypeDescription
vecFVector3The x coordinate.

__init__(self, v)

Initializes a new instance of the Vector3 struct.


def __init__(self, v):
    ...
ParameterTypeDescription
vfloatV.

__init__(self, vec4)

Initializes a new instance of the Vector3 struct.


def __init__(self, vec4):
    ...
ParameterTypeDescription
vec4Vector4Vec4.

__init__(self, x, y, z)

Initializes a new instance of the Vector3 struct.


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

See Also