FastVector3

A three-dimensional vector.

# Properties

[{"index":"number x","0":"The x-axis value of the vector."}]

[{"index":"number y","0":"The y-axis value of the vector."}]

[{"index":"number z","0":"The z-axis value of the vector."}]

[{"index":"FastVector3 back (Static) (ReadOnly)","0":"You can simply use FastVector3(0, 0, -1)."}]

[{"index":"FastVector3 down (Static) (ReadOnly)","0":"You can simply use FastVector3(0, -1, 0)."}]

[{"index":"FastVector3 forward (Static) (ReadOnly)","0":"You can simply use FastVector3(0, 0, 1)."}]

[{"index":"FastVector3 left (Static) (ReadOnly)","0":"You can simply use FastVector3(-1, 0, 0)"}]

[{"index":"FastVector3 negativeInfinity (Static) (ReadOnly)","0":"You can simply use FastVector3(-inf, -inf, -inf)."}]

[{"index":"FastVector3 one (Static) (ReadOnly)","0":"You can simply use FastVector3(1, 1, 1)."}]

[{"index":"FastVector3 positiveInfinity (Static) (ReadOnly)","0":"You can simply use FastVector3(inf, inf, inf)."}]

[{"index":"FastVector3 right (Static) (ReadOnly)","0":"You can simply use FastVector3(1, 0, 0)."}]

[{"index":"FastVector3 up (Static) (ReadOnly)","0":"You can simply use FastVector3(0, 1, 0)."}]

[{"index":"FastVector3 zero (Static) (ReadOnly)","0":"You can simply use FastVector3(0, 0, 0)."}]

# Constructors

[{"index":"FastVector3(number x, number y, number z)","0":"Initializes FastVector3 to the specified value."}]

[{"index":"FastVector3(Vector3 vector3)","0":"Initializes FastVector3 to the specified value."}]

# Methods

[{"index":"number Angle(FastVector3 b)","0":"Finds the angle between two vectors. Returns a value between 0 and 180."}]

[{"index":"FastVector3 Clone()","0":"Generates a copy."}]

[{"index":"FastVector3 Cross(FastVector3 b)","0":"Creates a FastVector3 representing the cross product of two Vectors and returns it."}]

[{"index":"number Distance(FastVector3 b)","0":"Finds the distance between two vectors."}]

[{"index":"number Dot(FastVector3 b)","0":"Finds the inner product of two vectors."}]

[{"index":"FastVector3 Lerp(FastVector3 b, number t)","0":"Creates a FastVector3 entity that linearly interpolates two Vectors with t and then returns it. The value of t is between 0 to 1."}]

[{"index":"FastVector3 LerpUnclamped(FastVector3 b, number t)","0":"Creates a FastVector3 entity that linearly interpolates two Vectors with t and then returns it."}]

[{"index":"number Magnitude()","0":"Finds the size of a vector."}]

[{"index":"FastVector3 Normalize()","0":"Creates the FastVector3 entity with the same direction and size of 1 and then returns it."}]

[{"index":"FastVector3 Project(FastVector3 b)","0":"Creates a FastVector3 entity, which projects Vector with b and then returns it."}]

[{"index":"FastVector3 ProjectOnPlane(FastVector3 planeNormal)","0":"Creates a FastVector3 entity, which projects the Vector to a flat surface and then returns it; planeNormal is the surface's normal Vector."}]

[{"index":"FastVector3 Reflect(FastVector3 normal)","0":"Creates a FastVector3 entity, which projects the Vector to a flat surface and then returns it; normal is the surface's normal Vector."}]

[{"index":"number SignedAngle(FastVector3 to, FastVector3 axis)","0":"Finds the angle between two Vectors. If the angle relative to from, based on the axis, is counterclockwise, the value is a positive number; if the angle is clockwise, the value is a negative number. Returns values between -180 to 180."}]

[{"index":"FastVector3 Slerp(FastVector3 b, number t)","0":"Creates a FastVector3 entity that spherical-linearly interpolates two Vectors with t and then returns it. The value of t is between 0 to 1."}]

[{"index":"FastVector3 SlerpUnclamped(FastVector3 b, number t)","0":"Creates a FastVector2 entity that spherical-linearly interpolates two Vectors with t and then returns it."}]

[{"index":"number SqrMagnitude()","0":"Finds the square of the size of a Vector."}]

[{"index":"FastVector2 ToVector2()","0":"Creates a FastVector2 entity with x and y elements and then returns it."}]

[{"index":"void Add(FastVector3 b)","0":"Adds value. Functions the same as the += operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Sub(FastVector3 b)","0":"Subtracts value. Functions the same as the -= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Mul(number num)","0":"Multiplies value. Functions the same as the *= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Div(number num)","0":"Divides value. Functions the same as the \/= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"number Angle(FastVector3 a, FastVector3 b) (Static)","0":"Finds the angle between two vectors. Returns a value between 0 and 180."}]

[{"index":"FastVector3 Cross(FastVector3 a, FastVector3 b) (Static)","0":"Creates a FastVector3 representing the cross product of two Vectors and then returns it."}]

[{"index":"number Distance(FastVector3 a, FastVector3 b) (Static)","0":"Finds the distance between two vectors."}]

[{"index":"number Dot(FastVector3 a, FastVector3 b) (Static)","0":"Finds the inner product of two vectors."}]

[{"index":"FastVector3 Lerp(FastVector3 a, FastVector3 b) (Static)","0":"Creates a FastVector3 entity that linearly interpolates two Vectors with t and then returns it. The value of t is between 0 to 1."}]

[{"index":"FastVector3 LerpUnclamped(FastVector3 a, FastVector3 b, number t) (Static)","0":"Creates a FastVector3 entity that linearly interpolates two Vectors with t and then returns it."}]

[{"index":"number Magnitude(FastVector3 a) (Static)","0":"Finds the size of a vector."}]

[{"index":"FastVector3 Normalize(FastVector3 a) (Static)","0":"Creates the FastVector3 entity with the same direction and size of 1, then returns it."}]

[{"index":"FastVector3 Project(FastVector3 a, FastVector3 b) (Static)","0":"Creates a FastVector3 entity, which projects Vector with b and then returns it."}]

[{"index":"FastVector3 ProjectOnPlane(FastVector3 vector, FastVector3 planeNormal) (Static)","0":"Creates a FastVector3 entity, which projects the Vector to a flat surface and then returns it; planeNormal is the surface's normal Vector."}]

[{"index":"FastVector3 Reflect(FastVector3 vector, FastVector3 normal) (Static)","0":"Creates a FastVector3 entity, which projects the Vector to a flat surface and then returns it; normal is the surface's normal Vector."}]

[{"index":"number SignedAngle(FastVector3 from, FastVector3 to, FastVector3 axis) (Static)","0":"Finds the angle between two Vectors. If the angle relative to from, based on the axis, is counterclockwise, the value is a positive number; if the angle is clockwise, the value is a negative number. Returns values between -180 to 180."}]

[{"index":"FastVector3 Slerp(FastVector3 a, FastVector3 b, number t) (Static)","0":"Creates a FastVector3 entity that spherical-linearly interpolates two Vectors with t and then returns it. The value of t is between 0 to 1."}]

[{"index":"FastVector3 SlerpUnclamped(FastVector3 a, FastVector3 b, number t) (Static)","0":"Creates a FastVector3 entity that spherical-linearly interpolates two Vectors with t and then returns it."}]

[{"index":"number SqrMagnitude(FastVector3 a) (Static)","0":"Finds the square of the size of a Vector."}]

[{"index":"FastVector2 ToVector2(FastVector3 a) (Static)","0":"Creates a FastVector2 entity with x and y elements and then returns it."}]

[{"index":"void Add(FastVector3 a, FastVector3 b) (Static)","0":"Adds value. Functions the same as the += operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Sub(FastVector3 a, FastVector3 b) (Static)","0":"Subtracts value. Functions the same as the -= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Mul(FastVector3 a, number num) (Static)","0":"Multiplies value. Functions the same as the *= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Div(FastVector3 a, number num) (Static)","0":"Divides value. Functions the same as the \/= operator, but it doesn't create a new entity, which results in faster execution."}]

# Operators

[{"index":"FastVector3 Addition(FastVector3 left, FastVector3 right) (Static)","0":"Returns a new FastVector3 entity obtained by adding two vectors."}]

[{"index":"FastVector3 Division(FastVector3 left, number right) (Static)","0":"Returns a new Vector4 entity by dividing the vector by a real number."}]

[{"index":"boolean Equality(FastVector3 left, FastVector3 right) (Static)","0":"Checks if the two vectors are the same. Returns true if they're the same. Otherwise, returns false."}]

[{"index":"boolean Inequality(FastVector3 left, FastVector3 right) (Static)","0":"Checks if the two vectors are different. Returns false if they're the same. Otherwise, returns true."}]

[{"index":"FastVector3 Multiply(number left, FastVector3 right) (Static)","0":"Returns a new FastVector3 entity by multiplying the vector by a real number."}]

[{"index":"FastVector3 Multiply(FastVector3 left, number right) (Static)","0":"Returns a new FastVector3 entity by multiplying the vector by a real number."}]

[{"index":"FastVector3 Subtraction(FastVector3 left, FastVector3 right) (Static)","0":"Returns a new FastVector3 entity obtained by subtracting two vectors."}]

[{"index":"FastVector3 UnaryNegation(FastVector3 value) (Static)","0":"Returns a new FastVector3 entity that represents a reversed vector."}]