disguise developers

Designer Plugins

Plugins for Disguise Designer software.

Int2

Base class: _BlipValue

Properties

maxComponent : int (Read-Only)

minComponent : int (Read-Only)

x : int

y : int

Constructors

__init__(self)

__init__(self, other: Int2)

Copy constructor for Int2

__init__(self, v: Vec2)

__init__(self, x_: int, y_: int)

Methods

_initParams(self) -> Any

A serialisable tuple of the Int2 parameters

anyLargerThan(self, v: Int2) -> bool

anySmallerThan(self, v: Int2) -> bool

area(self) -> int

aspect(self) -> float

length(self) -> float

restrict(self, a_: Int2, b_: Int2) -> Int2

vmax(self, o_: Int2) -> Int2

vmin(self, o_: Int2) -> Int2

Special Methods

__add__(self, v: Int2) -> Int2

__eq__(self, other: Int2) -> bool

__getitem__(self, key) -> Any

Get an item from the Int2 by index.

Parameters:

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

__len__(self) -> Any

The length of the Int2

Returns Always returns 2

__mul__(self, d) -> Any

__ne__(self, other: Int2) -> bool

__neg__(self) -> Any

The negative of the Int2

Returns The Int2 with its x and y components negated

__repr__(self) -> Any

String representation of the Int2

__rmul__(self, d) -> Any

__str__(self) -> Any

String representation of the Int2

__sub__(self, v: Int2) -> Int2