set method

set

Sets vector’s xyz components at a time, w will be set to 1

def set(self, new_x, new_y, new_z):
    ...
ParameterTypeDescription
new_xfloatNew X component.
new_yfloatNew Y component.
new_zfloatNew Z component.

set

Sets vector’s all components at a time

def set(self, new_x, new_y, new_z, new_w):
    ...
ParameterTypeDescription
new_xfloatNew X component.
new_yfloatNew Y component.
new_zfloatNew Z component.
new_wfloatNew W component.

See Also