Vector 2D

Vector 2D

Windows
MacOS
Linux
On this page

Actions

Break Vector 2D

Breaks a 2D vector apart into X, Y.

Target is Kismet Math Library

Clamp Axes 2D

Creates a copy of this vector with both axes clamped to the given range.

Target is Kismet Math Library

Cross Product (2D)

Returns the cross product of two 2d vectors - see http://mathworld.wolfram.com/CrossProduct.html

Target is Kismet Math Library

Distance 2D

Distance between two 2D points.

Target is Kismet Math Library

Distance Squared 2D

Squared distance between two 2D points.

Target is Kismet Math Library

Dot Product (2D)

Returns the dot product of two 2d vectors - see http://mathworld.wolfram.com/DotProduct.html

Target is Kismet Math Library

Equal (Vector2D)

Returns true if vector2D A is equal to vector2D B (A == B) within a specified error tolerance

Target is Kismet Math Library

Get Abs 2D

Get a copy of this vector with absolute value of each component.

Target is Kismet Math Library

Get Abs Max 2D

Get the maximum absolute value of the vector's components.

Target is Kismet Math Library

Get Max 2D

Get the maximum value of the vector's components.

Target is Kismet Math Library

Get Min 2D

Get the minimum value of the vector's components.

Target is Kismet Math Library

Get Rotated 2D

Rotates around axis (0,0,1)

Target is Kismet Math Library

Is Nearly Zero 2D

Checks whether vector is near to zero within a specified tolerance.

Target is Kismet Math Library

Is Zero 2D

Checks whether all components of the vector are exactly zero.

Target is Kismet Math Library

Make Vector 2D

Makes a 2d vector {X, Y}

Target is Kismet Math Library

Negated 2D

Gets a negated copy of the vector.

Target is Kismet Math Library

Normal Safe (Vector2D)

Gets a normalized copy of the vector, checking it is safe to do so based on the length. Returns zero vector if vector length is too small to safely normalize.

Target is Kismet Math Library

Normalize In Place (Vector2D)

Normalize this vector in-place if it is large enough, set it to (0,0) otherwise.

Target is Kismet Math Library

Normalize2D

Returns a unit normal version of the 2D vector

Target is Kismet Math Library

Not Equal (Vector2D)

Returns true if vector2D A is not equal to vector2D B (A != B) within a specified error tolerance

Target is Kismet Math Library

Not Equal Exactly (Vector)

Returns true if vector A is not equal to vector B (A != B)

Target is Kismet Math Library

Not Equal Exactly (Vector2D)

Returns true if vector2D A is not equal to vector2D B (A != B) within a specified error tolerance

Target is Kismet Math Library

Set 2D

Set the values of the vector directly.

Target is Kismet Math Library

Spherical2D To Unit Cartesian

Converts spherical coordinates on the unit sphere into a Cartesian unit length vector.

Target is Kismet Math Library

To Direction And Length

Util to convert this vector into a unit direction vector and its original length.

Target is Kismet Math Library

To Rounded (Vector2D)

Get this vector as a vector where each component has been rounded to the nearest int.

Target is Kismet Math Library

To sign (+1/-1) 2D

Get a copy of the vector as sign only. Each component is set to +1 or -1, with the sign of zero treated as +1.

Target is Kismet Math Library

Vector 2D One

2D one vector constant (1,1)

Target is Kismet Math Library

Vector 2D Unit 45Deg

2D unit vector constant along the 45 degree angle or symmetrical positive axes (sqrt(.5),sqrt(.5)) or (.707,.707). https://en.wikipedia.org/wiki/Unit_vector

Target is Kismet Math Library

Vector 2D Zero

2D zero vector constant (0,0)

Target is Kismet Math Library

vector2d - float

Returns Vector A subtracted by B

Target is Kismet Math Library

vector2d - vector2d

Returns subtraction of Vector B from Vector A (A - B)

Target is Kismet Math Library

vector2d * float

Returns Vector A scaled by B

Target is Kismet Math Library

vector2d * vector2d

Element-wise Vector multiplication (Result = {A.x*B.x, A.y*B.y})

Target is Kismet Math Library

vector2d / float

Returns Vector A divided by B

Target is Kismet Math Library

vector2d / vector2d

Element-wise Vector divide (Result = {A.x/B.x, A.y/B.y})

Target is Kismet Math Library

vector2d + float

Returns Vector A added by B

Target is Kismet Math Library

vector2d + vector2d

Returns addition of Vector A and Vector B (A + B)

Target is Kismet Math Library

Vector2dLength

Returns the length of a 2D Vector.

Target is Kismet Math Library

Vector2dLengthSquared

Returns the squared length of a 2D Vector.

Target is Kismet Math Library

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss