unreal.IntPoint

class unreal.IntPoint(x=0, y=0)

Bases: unreal.StructBase

Screen coordinates. note: The full C++ class is located here: EngineSourceRuntimeCorePublicMathIntPoint.h

C++ Source:

  • Module: CoreUObject

  • File: NoExportTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • x (int32): [Read-Write] X

  • y (int32): [Read-Write] Y

DOWN = None

Down Int Point (0, 1)

Type

(IntPoint)

LEFT = None

Left Int Point (-1, 0)

Type

(IntPoint)

ONE = None

One Int Point (1, 1)

Type

(IntPoint)

RIGHT = None

Right Int Point (1, 0)

Type

(IntPoint)

UP = None

Up Int Point (0, -1)

Type

(IntPoint)

ZERO = None

Zero Int Point (0, 0)

Type

(IntPoint)

__add__(other)

Overloads:

  • IntPoint Returns IntPoint A added by B

  • int32 Addition (A - B)

__eq__(other)

Overloads:

  • IntPoint Returns true if IntPoint A is NOT equal to IntPoint B (A != B)

  • IntPoint Returns true if IntPoint A is equal to IntPoint B (A == B)

__iadd__(other)

Overloads:

  • IntPoint Returns IntPoint A added by B

  • int32 Addition (A - B)

__imul__(other)

Overloads:

  • IntPoint Returns IntPoint A multiplied by B

  • int32 Multiplication (A * B)

__isub__(other)

Overloads:

  • IntPoint Returns IntPoint A subtracted by B

  • int32 Subtraction (A - B)

__mul__(other)

Overloads:

  • IntPoint Returns IntPoint A multiplied by B

  • int32 Multiplication (A * B)

__sub__(other)

Overloads:

  • IntPoint Returns IntPoint A subtracted by B

  • int32 Subtraction (A - B)

__truediv__(other)

Overloads:

  • IntPoint Returns IntPoint A divided by B

  • int32 Division (A * B)

add(b) IntPoint

Returns IntPoint A added by B

Parameters

b (IntPoint) –

Return type

IntPoint

add_int(b) IntPoint

Addition (A - B)

Parameters

b (int32) –

Return type

IntPoint

divide(b) IntPoint

Returns IntPoint A divided by B

Parameters

b (IntPoint) –

Return type

IntPoint

divide_int(b) IntPoint

Division (A * B)

Parameters

b (int32) –

Return type

IntPoint

equals(b) bool

Returns true if IntPoint A is equal to IntPoint B (A == B)

Parameters

b (IntPoint) –

Return type

bool

multiply(b) IntPoint

Returns IntPoint A multiplied by B

Parameters

b (IntPoint) –

Return type

IntPoint

multiply_int(b) IntPoint

Multiplication (A * B)

Parameters

b (int32) –

Return type

IntPoint

not_equal(b) bool

Returns true if IntPoint A is NOT equal to IntPoint B (A != B)

Parameters

b (IntPoint) –

Return type

bool

subtract(b) IntPoint

Returns IntPoint A subtracted by B

Parameters

b (IntPoint) –

Return type

IntPoint

subtract_int(b) IntPoint

Subtraction (A - B)

Parameters

b (int32) –

Return type

IntPoint

vector2d() Vector2D

Convert an IntPoint to a Vector2D

Return type

Vector2D

property x

[Read-Write] X

Type

(int32)

property y

[Read-Write] Y

Type

(int32)