Vector

Overview

Functions

CopyVector()

Vectorarrow-up-right CopyVector(Vectorarrow-up-right vector)

Helper function to copy a Vector Isaac API class.

GetRandomVector()

void GetRandomVector(integer | RNG Optional. The seed or RNGobject to use. If anRNGobject is provided, theRNG:Nextmethod will be called. Default isGetRandomSeed? seedOrRNG?)

Returns a random vector between (-1, -1) and (1, 1). You can get a larger vector by multiplying the returned vector. Unlike RandomVector(), this function supports seeding.

VectorEquals()

boolean VectorEquals(Vectorarrow-up-rightv1,Vectorarrow-up-right v2)

Helper function to check if two vectors are exactly equal.

VectorFuzzyEquals()

boolean VectorFuzzyEquals(Vectorarrow-up-rightv1,Vectorarrow-up-right v2, number? epsilon = 0.001 )

Helper function to see if two vectors are equal within the given tolerance epsilon.

VectorHasLength()

boolean VectorHasLength(Vectorarrow-up-right v, number? epsilon = 0.001 )

Helper function to see if a vector has a length greater than zero within the given tolerance epsilon.

VectorToDirection()

Directionarrow-up-right VectorToDirection(Vectorarrow-up-right vector)

Returns a direction corresponding to the direction the provided vector is pointing.

Last updated