class Vector4 implements Point4Re-exportimport { Vector4 } from "https://deno.land/x/gmath@0.1.12/mod.ts"; ConstructorsnewVector4()newVector4(x: number)newVector4(x: number,y: number,z: number,w: number,)newVector4(source: Float32Array)newVector4(x?: number | Float32Array,y?: number,z?: number,w?: number,)Propertiesw: numberx: numbery: numberz: number[0]: number[1]: number[2]: number[3]: numberMethodsadd(other: number | Vector4): Vector4Adds this Vector4 to the specified Vector4 or scalar clamp(length: number): Vector4clone(): Vector4Creates a new Vector2 with the same values div(other: number | Vector4): Vector4Divides this Vector4 with the specified Vector4 or scalar dot(other: Vector4): numberCalculates the dot product of this Vector4 eq(other: Vector4): booleanChecks equality between two Vector4 isFinite(): booleanChecks if the Vector4 is finite lerp(other: Vector4, alpha: number): Vector4Linearly interpolates between this and the specified Vector4 mag(): numberThe magnitude of this Vector4 mag2(): numberThe squared magnitude of this Vector4 midpoint(other: Vector4): Vector4Calculates the midpoint between two Vector4 mul(other: number | Vector4): Vector4Multiplies this Vector4 with the specified Vector4 or scalar neg(): Vector4Negates the values of this Vector4 normal(): Vector4Returns a new Vector2 with the same direction, but with a magnitude of 1 set(other: Vector4): Vector4Sets the x, y, z and w of this Vector4 to the specified Vector4 x, y, z and w values sub(other: number | Vector4): Vector4Subtracts this Vector4 from the specified Vector4 or scalar toArray(): [number, number, number, number, ]Converts the Vector4 to a tuple of numbers toFloat32Array(): Float32ArrayConverts the Vector to a Float32Array toString(): stringConverts the Vector4 to a string trunc(): Vector3Truncates this Vector4 to a Vector3 dropping the w value truncN(n: | 0 | 1 | 2 | 3): Vector3Truncates this Vector4 to a Vector3 dropping the nth value Static MethodsnegativeInfinity(): Vector4A Vector4 with all values set to Number.NEGATIVE_INFINITY one(): Vector4A Vector4 with all values set to 1 positiveInfinity(): Vector4A Vector4 with all values set to Number.POSITIVE_INFINITY zero(): Vector4A Vector4 with all values set to 0