nuke.nukemath.Vector2

class nuke.nukemath.Vector2(*args, **kwargs)

Bases: pybind11_builtins.pybind11_object

Overloaded function.

  1. __init__(self: nukemath.Vector2, arg0: float, arg1: float) -> None

  2. __init__(self: nukemath.Vector2, arg0: nukemath.Vector2) -> None

Methods

cross

distanceBetween

distanceSquared

dot

length

lengthSquared

negate

normalize

set

Overloaded function.

Attributes

x

y

__add__(self: nukemath.Vector2, arg0: nukemath.Vector2) nukemath.Vector2
__mul__(*args, **kwargs)

Overloaded function.

  1. __mul__(self: nukemath.Vector2, arg0: float) -> nukemath.Vector2

  2. __mul__(self: nukemath.Vector2, arg0: nukemath.Vector2) -> nukemath.Vector2

  3. __mul__(self: nukemath.Vector2, arg0: float) -> nukemath.Vector2

cross(self: nukemath.Vector2, arg0: nukemath.Vector2) float
distanceBetween(self: nukemath.Vector2, arg0: nukemath.Vector2) float
distanceSquared(self: nukemath.Vector2, arg0: nukemath.Vector2) float
dot(self: nukemath.Vector2, arg0: nukemath.Vector2) float
length(self: nukemath.Vector2) float
lengthSquared(self: nukemath.Vector2) float
negate(self: nukemath.Vector2) None
normalize(self: nukemath.Vector2) float
set(*args, **kwargs)

Overloaded function.

  1. set(self: nukemath.Vector2, arg0: float) -> None

  2. set(self: nukemath.Vector2, arg0: float, arg1: float) -> None

  3. set(self: nukemath.Vector2, arg0: nukemath.Vector2) -> None