disguise developers

Designer Plugins

Plugins for Disguise Designer software.

Vec

Base class: _BlipValue

Properties

maxComponent : float (Read-Only)

minComponent : float (Read-Only)

x : float

y : float

z : float

Constructors

__init__(self)

__init__(self, _x: float, _y: float)

__init__(self, _x: float, _y: float, arg2: float)

__init__(self, v: Vec2)

__init__(self, other: Vec)

Copy constructor for Vec

Methods

_initParams(self) -> Any

A serialisable tuple of the Vec parameters

angles(self) -> Vec

cross(self, v: Vec) -> Vec

dot(self, v: Vec) -> float

length(self) -> float

modulo(self, v: Vec) -> Vec

normalise(self) -> Vec

restrict(self, min: Vec, max: Vec) -> Vec

round(self, v: Vec) -> Vec

vmax(self, v: Vec) -> Vec

vmin(self, v: Vec) -> Vec

Special Methods

__add__(self, v: Vec) -> Vec

__div__(self, s) -> Any

__eq__(self, v: Vec) -> bool

__getitem__(self, key) -> Any

Get an item from the Vec by index.

Parameters:

Returns The x element if the index is 0, the y element if the index is 1, the z element if the index is 2

__len__(self) -> Any

The length of the Vec

Returns Always returns 3

__mul__(self, s) -> Any

__ne__(self, v: Vec) -> bool

__neg__(self) -> Any

The negative of the Vec

Returns The Vec with its x, y and z components negated

__rdiv__(self, other) -> Any

Divide another vector by this vector

Parameters:

Returns The element-wise division other/self

__repr__(self) -> Any

String representation of the Vec

__rmul__(self, s) -> Any

__str__(self) -> Any

String representation of the Vec

__sub__(self, v: Vec) -> Vec