Vector
Last updated
Last updated
void
boolean
boolean
boolean
CopyVector(
vector)
Helper function to copy a Vector
Isaac API class.
void GetRandomVector(integer | RNG Optional. The seed or
RNGobject to use. If an
RNGobject is provided, the
RNG:Nextmethod will be called. Default is
GetRandomSeed? 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.
Helper function to check if two vectors are exactly equal.
Helper function to see if two vectors are equal within the given tolerance epsilon
.
Helper function to see if a vector has a length greater than zero within the given tolerance epsilon
.
Returns a direction corresponding to the direction the provided vector is pointing.
( vector)
(`integer
( v1, v2)
( v1, v2, number?
epsilon = 0.001 )
( v, number?
epsilon = 0.001 )
( vector)
boolean VectorEquals(
v1,
v2)
boolean VectorFuzzyEquals(
v1,
v2, number? epsilon = 0.001 )
boolean VectorHasLength(
v, number? epsilon = 0.001 )
VectorToDirection(
vector)