2.25. Vector2¶
2.25.1. Synopsis¶
2.25.1.1. Functions¶
def
__repr__()def
__str__()def
get_x()def
get_y()def
length()def
normalise()def
__ne__(arg__1)def
__mul__(arg__1)def
__mul__(arg__1)def
__add__(arg__1)def
__sub__(arg__1)def
__div__(arg__1)def
__lshift__(os)def
__eq__(arg__1)def
__rshift__(is)def
set_x(arg__1)def
set_y(arg__1)
2.25.1.3. Properties¶
property
x[read-write] of doubleproperty
y[read-write] of double
2.25.2. Detailed Description¶
A class representing a two-vector of doubles. It is implicitly convertible to a tuple containing two doubles and can be constructed like
Vector2((0.1, 0.2)).
-
class
mocha.project.Vector2¶
-
mocha.project.Vector2.__repr__()¶ - Return type
object
-
mocha.project.Vector2.__str__()¶ - Return type
object
-
mocha.project.Vector2.get_x()¶ - Return type
double
-
mocha.project.Vector2.get_y()¶ - Return type
double
-
mocha.project.Vector2.length()¶ - Return type
double
-
mocha.project.Vector2.normalise()¶
-
mocha.project.Vector2.__ne__(arg__1)¶ - Return type
bool
-
mocha.project.Vector2.__mul__(arg__1)¶ - Return type
double
-
static
mocha.project.Vector2.__mul__(arg__1) - Return type
-
mocha.project.Vector2.__mul__(arg__1) - Return type
-
mocha.project.Vector2.__add__(arg__1)¶ - Return type
-
mocha.project.Vector2.__sub__(arg__1)¶ - Return type
-
mocha.project.Vector2.__div__(arg__1)¶ - Return type
-
mocha.project.Vector2.__lshift__(os)¶ - Return type
PySide6.QtCore.QTextStream
-
mocha.project.Vector2.__eq__(arg__1)¶ - Return type
bool
-
mocha.project.Vector2.__rshift__(is)¶ - Return type
PySide6.QtCore.QTextStream
-
mocha.project.Vector2.set_x(arg__1)¶
-
mocha.project.Vector2.set_y(arg__1)¶
-
Oberon::Vector2.x - Type
double
- Access
read-write The x coordinate of this vector.
-
Oberon::Vector2.y - Type
double
- Access
read-write The y coordinate of this vector.