Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine.vec4 Struct

Notice
The functions listed below are the members of the Unigine.MathLib namespace.

The

floatx#

The X component of the vector.Swizzle simplifying access to the corresponding vector components (in the specified order).

floaty#

The Y component of the vector.Swizzle simplifying access to the corresponding vector components (in the specified order).

floatz#

The Z component of the vector.Swizzle simplifying access to the corresponding vector components (in the specified order).

floatw#

The W component of the vector.

floatLength#

The Length of the vector.

floatMinimum#

The Minimum value among all components.

floatMaximum#

The Maximum value among all components.

floatLength2#

The Squared length of the vector. This method is much faster than length() — the calculation is basically the same only without the slow Sqrt call. If you are using lengths simply to compare distances, then it is faster to compare squared lengths against the squares of distances as the comparison gives the same result.

floatILength#

The Inverted length of the vector.

floatSum#

The Sum of vector components.

vec4Absolute#

The Returns the absolute value of an argument.

vec4Clamped#

The Returns the value clamped within the range of [0.0,1.0].

vec4Normalized#

The Returns a vector with the same direction as the specified vector, but with a length of one.

vec4Frac#

The Returns a vector containing fractional parts of the corresponding vector components.

vec4Floor#

The Returns a vector containing the largest integral values each being less than or equal to the corresponding vector component.

vec4Ceil#

The Returns a vector containing the smallest integral values each being greater than or equal to the corresponding vector component.

vec4ZERO#

The Vector, filled with zeros (0).

vec4ONE#

The Vector, filled with ones (1).

vec4EPS#

The Vector, filled with the epsilon constant (1e-6f).

vec4INF#

The Vector, filled with the infinity constant (1e+9f).

vec4WHITE#

The White color vector: RGBA is (1.0, 1.0, 1.0, 1.0).

vec4BLACK#

The Black color vector: RGBA is (0.0, 0.0, 0.0, 1.0).

vec4GREY#

The Grey color vector: RGBA is (0.5, 0.5, 0.5, 1.0).

vec4RED#

The Red color vector: RGBA is (1.0, 0.0, 0.0, 1.0).

vec4GREEN#

The Green color vector: RGBA is (0.0, 1.0, 0.0, 1.0).

vec4BLUE#

The Blue color vector: RGBA is (0.0, 0.0, 1.0, 1.0).

vec4CYAN#

The Cyan color vector: RGBA is (0.0, 1.0, 1.0, 1.0).

vec4MAGENTA#

The Magenta color vector: RGBA is (1.0, 0.0, 1.0, 1.0).

vec4YELLOW#

The Yellow color vector: RGBA is (1.0, 1.0, 0.0, 1.0).

byteNUM_ELEMENTS#

The Number of elements in the vector.

vec2xx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2xy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2xz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2yx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2yy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2yz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2zx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2zy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2zz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3xzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3yzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3zzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xxzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xyzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4xzzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yxzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yyzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4yzzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zxzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zyzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzxx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzxy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzxz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzyx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzyy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzyz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzzx#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzzy#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4zzzz#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

floatr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

floatg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

floatb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2rr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2rg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2rb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2gr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2gg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2gb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2br#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2bg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec2bb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3rbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3grr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3grg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3grb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3ggr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3ggg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3ggb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3gbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3gbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3gbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3brr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3brg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3brb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3bgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3bgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3bgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3bbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3bbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec3bbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rrbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rgrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rgrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rgrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rggr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rggg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rggb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rgbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rgbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rgbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4rbbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4grbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4ggrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4ggrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4ggrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gggr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gggg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gggb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4ggbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4ggbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4ggbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4gbbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4brbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bgrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bgrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bgrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bggr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bggg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bggb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bgbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bgbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bgbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbrr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbrg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbrb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbgr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbgg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbgb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbbr#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbbg#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4bbbb#

The Swizzle simplifying access to the corresponding vector components (in the specified order).

vec4operator* ( vec4 v0, vec2 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• vec2 v1 - Second value.

vec4operator* ( vec4 v0, vec3 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• vec3 v1 - Second value.

vec4operator* ( vec4 v0, vec4 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

vec4operator* ( vec4 v0, float v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• float v1 - Second value.

vec4operator* ( float v0, vec4 v1 ) #

Multiplication.

Arguments

• float v0 - First value.
• vec4 v1 - Second value.

dvec4operator* ( vec4 v0, dvec2 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• dvec2 v1 - Second value.

dvec4operator* ( vec4 v0, dvec3 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• dvec3 v1 - Second value.

dvec4operator* ( vec4 v0, dvec4 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• dvec4 v1 - Second value.

dvec4operator* ( vec4 v0, double v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• double v1 - Second value.

dvec4operator* ( double v0, vec4 v1 ) #

Multiplication.

Arguments

• double v0 - First value.
• vec4 v1 - Second value.

vec4operator* ( vec4 v0, ivec2 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• ivec2 v1 - Second value.

vec4operator* ( vec4 v0, ivec3 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• ivec3 v1 - Second value.

vec4operator* ( vec4 v0, ivec4 v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• ivec4 v1 - Second value.

vec4operator* ( vec4 v0, int v1 ) #

Multiplication.

Arguments

• vec4 v0 - First value.
• int v1 - Second value.

vec4operator* ( int v0, vec4 v1 ) #

Multiplication.

Arguments

• int v0 - First value.
• vec4 v1 - Second value.

vec4operator/ ( vec4 v0, vec2 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• vec2 v1 - Second value.

vec4operator/ ( vec4 v0, vec3 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• vec3 v1 - Second value.

vec4operator/ ( vec4 v0, vec4 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

vec4operator/ ( vec4 v0, float v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• float v1 - Second value.

vec4operator/ ( float v0, vec4 v1 ) #

Division.

Arguments

• float v0 - First value.
• vec4 v1 - Second value.

dvec4operator/ ( vec4 v0, dvec2 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• dvec2 v1 - Second value.

dvec4operator/ ( vec4 v0, dvec3 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• dvec3 v1 - Second value.

dvec4operator/ ( vec4 v0, dvec4 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• dvec4 v1 - Second value.

dvec4operator/ ( vec4 v0, double v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• double v1 - Second value.

dvec4operator/ ( double v0, vec4 v1 ) #

Division.

Arguments

• double v0 - First value.
• vec4 v1 - Second value.

vec4operator/ ( vec4 v0, ivec2 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• ivec2 v1 - Second value.

vec4operator/ ( vec4 v0, ivec3 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• ivec3 v1 - Second value.

vec4operator/ ( vec4 v0, ivec4 v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• ivec4 v1 - Second value.

vec4operator/ ( vec4 v0, int v1 ) #

Division.

Arguments

• vec4 v0 - First value.
• int v1 - Second value.

vec4operator/ ( int v0, vec4 v1 ) #

Division.

Arguments

• int v0 - First value.
• vec4 v1 - Second value.

vec4operator- ( vec4 v0, vec2 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• vec2 v1 - Second value.

vec4operator- ( vec4 v0, vec3 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• vec3 v1 - Second value.

vec4operator- ( vec4 v0, vec4 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

vec4operator- ( vec4 v0, float v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• float v1 - Second value.

vec4operator- ( float v0, vec4 v1 ) #

Subtraction.

Arguments

• float v0 - First value.
• vec4 v1 - Second value.

dvec4operator- ( vec4 v0, dvec2 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• dvec2 v1 - Second value.

dvec4operator- ( vec4 v0, dvec3 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• dvec3 v1 - Second value.

dvec4operator- ( vec4 v0, dvec4 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• dvec4 v1 - Second value.

dvec4operator- ( vec4 v0, double v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• double v1 - Second value.

dvec4operator- ( double v0, vec4 v1 ) #

Subtraction.

Arguments

• double v0 - First value.
• vec4 v1 - Second value.

vec4operator- ( vec4 v0, ivec2 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• ivec2 v1 - Second value.

vec4operator- ( vec4 v0, ivec3 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• ivec3 v1 - Second value.

vec4operator- ( vec4 v0, ivec4 v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• ivec4 v1 - Second value.

vec4operator- ( vec4 v0, int v1 ) #

Subtraction.

Arguments

• vec4 v0 - First value.
• int v1 - Second value.

vec4operator- ( int v0, vec4 v1 ) #

Subtraction.

Arguments

• int v0 - First value.
• vec4 v1 - Second value.

vec4operator+ ( vec4 v0, vec2 v1 ) #

Arguments

• vec4 v0 - First value.
• vec2 v1 - Second value.

vec4operator+ ( vec4 v0, vec3 v1 ) #

Arguments

• vec4 v0 - First value.
• vec3 v1 - Second value.

vec4operator+ ( vec4 v0, vec4 v1 ) #

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

vec4operator+ ( vec4 v0, float v1 ) #

Arguments

• vec4 v0 - First value.
• float v1 - Second value.

vec4operator+ ( float v0, vec4 v1 ) #

Arguments

• float v0 - First value.
• vec4 v1 - Second value.

dvec4operator+ ( vec4 v0, dvec2 v1 ) #

Arguments

• vec4 v0 - First value.
• dvec2 v1 - Second value.

dvec4operator+ ( vec4 v0, dvec3 v1 ) #

Arguments

• vec4 v0 - First value.
• dvec3 v1 - Second value.

dvec4operator+ ( vec4 v0, dvec4 v1 ) #

Arguments

• vec4 v0 - First value.
• dvec4 v1 - Second value.

dvec4operator+ ( vec4 v0, double v1 ) #

Arguments

• vec4 v0 - First value.
• double v1 - Second value.

dvec4operator+ ( double v0, vec4 v1 ) #

Arguments

• double v0 - First value.
• vec4 v1 - Second value.

vec4operator+ ( vec4 v0, ivec2 v1 ) #

Arguments

• vec4 v0 - First value.
• ivec2 v1 - Second value.

vec4operator+ ( vec4 v0, ivec3 v1 ) #

Arguments

• vec4 v0 - First value.
• ivec3 v1 - Second value.

vec4operator+ ( vec4 v0, ivec4 v1 ) #

Arguments

• vec4 v0 - First value.
• ivec4 v1 - Second value.

vec4operator+ ( vec4 v0, int v1 ) #

Arguments

• vec4 v0 - First value.
• int v1 - Second value.

vec4operator+ ( int v0, vec4 v1 ) #

Arguments

• int v0 - First value.
• vec4 v1 - Second value.

vec4operator% ( vec4 v0, vec2 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• vec2 v1 - Second value.

vec4operator% ( vec4 v0, vec3 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• vec3 v1 - Second value.

vec4operator% ( vec4 v0, vec4 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

vec4operator% ( vec4 v0, float v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• float v1 - Second value.

vec4operator% ( float v0, vec4 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• float v0 - First value.
• vec4 v1 - Second value.

dvec4operator% ( vec4 v0, dvec2 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• dvec2 v1 - Second value.

dvec4operator% ( vec4 v0, dvec3 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• dvec3 v1 - Second value.

dvec4operator% ( vec4 v0, dvec4 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• dvec4 v1 - Second value.

dvec4operator% ( vec4 v0, double v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• double v1 - Second value.

dvec4operator% ( double v0, vec4 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• double v0 - First value.
• vec4 v1 - Second value.

vec4operator% ( vec4 v0, ivec2 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• ivec2 v1 - Second value.

vec4operator% ( vec4 v0, ivec3 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• ivec3 v1 - Second value.

vec4operator% ( vec4 v0, ivec4 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• ivec4 v1 - Second value.

vec4operator% ( vec4 v0, int v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• vec4 v0 - First value.
• int v1 - Second value.

vec4operator% ( int v0, vec4 v1 ) #

Modulo, gives the remainder of a division of two specified values.

Arguments

• int v0 - First value.
• vec4 v1 - Second value.

Subtraction.

Increment.

Decrement.

booloperator== ( vec4 v0, vec4 v1 ) #

Performs equal comparison.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

booloperator!= ( vec4 v0, vec4 v1 ) #

Not equal comparison.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

booloperator> ( vec4 v0, vec4 v1 ) #

Greater comparison.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

booloperator< ( vec4 v0, vec4 v1 ) #

Greater comparison.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

booloperator>= ( vec4 v0, vec4 v1 ) #

Greater than or equal to comparison.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

booloperator<= ( vec4 v0, vec4 v1 ) #

Less than or equal to comparison.

Arguments

• vec4 v0 - First value.
• vec4 v1 - Second value.

booloperatortrue ( vec4 v ) #

Returns true if the operand is both, not null and not NaN.

booloperatorfalse ( vec4 v ) #

Returns true if the operand is both, null and NaN.

voidSet ( float vx, float vy, float vz, float vw ) #

Sets the value using the specified argument(s).

Arguments

• float vx - New float value to be set for the first component.
• float vy - New float value to be set for the second component.
• float vz - New float value to be set for the third component.
• float vw - New float value to be set for the fourth component.

voidSet ( float v ) #

Sets the value using the specified argument(s).

Arguments

• float v - A float value to be used.

voidSet ( float[] v ) #

Sets the value using the specified argument(s).

Arguments

• float[] v - Source vector.

voidSet ( vec2 v, float vz, float vw ) #

Sets the value using the specified argument(s).

Arguments

• vec2 v - Source vector.
• float vz - New float value to be set for the third component.
• float vw - New float value to be set for the fourth component.

voidSet ( vec3 v, float vw ) #

Sets the value using the specified argument(s).

Arguments

• vec3 v - Source vector.
• float vw - New float value to be set for the fourth component.

voidSet ( vec2 v ) #

Sets the value using the specified argument(s).

Arguments

• vec2 v - Source vector.

voidSet ( vec3 v ) #

Sets the value using the specified argument(s).

Arguments

• vec3 v - Source vector.

voidSet ( vec4 v ) #

Sets the value using the specified argument(s).

Arguments

• vec4 v - Source vector.

voidSet ( Vector4 v ) #

Sets the value using the specified argument(s).

Arguments

• Vector4 v - Source vector.

voidSet ( double vx, double vy, double vz, double vw ) #

Sets the value using the specified argument(s).

Arguments

• double vx - New double value to be set for the first component.
• double vy - New double value to be set for the second component.
• double vz - New double value to be set for the third component.
• double vw - New double value to be set for the fourth component.

voidSet ( double v ) #

Sets the value using the specified argument(s).

Arguments

• double v - A double value to be used.

voidSet ( double[] v ) #

Sets the value using the specified argument(s).

Arguments

• double[] v - Source vector.

voidSet ( dvec2 v, double vz, double vw ) #

Sets the value using the specified argument(s).

Arguments

• dvec2 v - Source vector.
• double vz - New double value to be set for the third component.
• double vw - New double value to be set for the fourth component.

voidSet ( dvec3 v, double vw ) #

Sets the value using the specified argument(s).

Arguments

• dvec3 v - Source vector.
• double vw - New double value to be set for the fourth component.

voidSet ( dvec2 v ) #

Sets the value using the specified argument(s).

voidSet ( dvec3 v ) #

Sets the value using the specified argument(s).

voidSet ( dvec4 v ) #

Sets the value using the specified argument(s).

voidSet ( int vx, int vy, int vz, int vw ) #

Sets the value using the specified argument(s).

Arguments

• int vx - New int value to be set for the first component.
• int vy - New int value to be set for the second component.
• int vz - New int value to be set for the third component.
• int vw - New int value to be set for the fourth component.

voidSet ( int v ) #

Sets the value using the specified argument(s).

Arguments

• int v - A int value to be used.

voidSet ( int[] v ) #

Sets the value using the specified argument(s).

Arguments

• int[] v - Source vector.

voidSet ( ivec2 v, int vz, int vw ) #

Sets the value using the specified argument(s).

Arguments

• ivec2 v - Source vector.
• int vz - New int value to be set for the third component.
• int vw - New int value to be set for the fourth component.

voidSet ( ivec3 v, int vw ) #

Sets the value using the specified argument(s).

Arguments

• ivec3 v - Source vector.
• int vw - New int value to be set for the fourth component.

voidSet ( ivec2 v ) #

Sets the value using the specified argument(s).

voidSet ( ivec3 v ) #

Sets the value using the specified argument(s).

voidSet ( ivec4 v ) #

Sets the value using the specified argument(s).

voidSet ( byte vx, byte vy, byte vz, byte vw ) #

Sets the value using the specified argument(s).

Arguments

• byte vx - New byte value to be set for the first component.
• byte vy - New byte value to be set for the second component.
• byte vz - New byte value to be set for the third component.
• byte vw - New byte value to be set for the fourth component.

voidSet ( byte v ) #

Sets the value using the specified argument(s).

Arguments

• byte v - A byte value to be used.

voidSet ( byte[] v ) #

Sets the value using the specified argument(s).

Arguments

• byte[] v - Source vector.

voidSet ( bvec4 v ) #

Sets the value using the specified argument(s).

voidClear ( ) #

Clears the value by setting all components/elements to 0.

voidAdd ( vec4 v ) #

Performs addition of the specified argument.

voidAdd ( float v ) #

Performs addition of the specified argument.

Arguments

• float v - Value.

voidSub ( vec4 v ) #

Subtracts each element of the specified argument from ther corresponding element.

voidSub ( float v ) #

Subtracts each element of the specified argument from ther corresponding element.

Arguments

• float v - Value.

voidMul ( vec4 v ) #

Multiplies the vector by the value of the specified argument.

Arguments

• vec4 v - Vector multiplier.

voidMul ( float v ) #

Multiplies the vector by the value of the specified argument.

Arguments

• float v - A float multiplier.

voidDiv ( vec4 v ) #

Returns the result of division of the vector by the value of the specified arguments.

Arguments

• vec4 v - A vec4 divisor value.

voidDiv ( float v ) #

Returns the result of division of the vector by the value of the specified arguments.

Arguments

• float v - A float divisor value.

voidNormalize ( ) #

Returns a vector with the same direction, but with a length of 1.

boolEquals ( vec4 other ) #

Checks if the vector and the specified argument are equal (epsilon).

Arguments

• vec4 other - Value to be checked for equality.

Return value.

boolEqualsNearly ( vec4 other, float epsilon ) #

Checks if the argument represents the same value with regard to the specified accuracy (epsilon).

Arguments

• vec4 other - Value to be checked for equality.
• float epsilon - Epsilon value, that determines accuracy of comparison.

Return value.

boolEquals ( object obj ) #

Checks if the vector and the specified argument are equal (epsilon).

Return value.

intGetHashCode ( ) #

Returns a hash code for the current object. Serves as the default hash function.

Return value

Resulting int value.

stringToString ( ) #

Converts the current value to a string value.

Return value

Resulting string value.

stringToString ( string format ) #

Converts the current value to a string value.

Arguments

• string format - String formatting to be used. A format string is composed of zero or more ordinary characters (excluding %) that are copied directly to the result string and control sequences, each of which results in fetching its own parameter. Each control sequence consists of a percent sign (%) followed by one or more of these elements, in order:
• An optional number, a width specifier, that says how many characters (minimum) this conversion should result in.
• An optional precision specifier that says how many decimal digits should be displayed for floating-point numbers.
• A type specifier that says what type the argument data should be treated as. Possible types:
• c: the argument is treated as an integer and presented as a character with that ASCII value.
• d or i: the argument is treated as an integer and presented as a (signed) decimal number.
• o: the argument is treated as an integer and presented as an octal number.
• u: the argument is treated as an integer and presented as an unsigned decimal number.
• x: the argument is treated as an integer and presented as a hexadecimal number (with lower-case letters).
• X: the argument is treated as an integer and presented as a hexadecimal number (with upper-case letters).
• f: the argument is treated as a float and presented as a floating-point number.
• g: the same as e or f, the shortest one is selected.
• G: the same as E or F, the shortest one is selected.
• e: the argument is treated as using the scientific notation with lower-case 'e' (e.g. 1.2e+2).
• E: the argument is treated as using the scientific notation with upper-case 'E' (e.g. 1.2E+2).
• s: the argument is treated as and presented as a string.
• p: the argument is treated as and presented as a pointer address.
• %: a literal percent character. No argument is required.

Return value

Resulting string value.

stringToString ( string format, IFormatProvider formatProvider ) #

Converts the current value to a string value.

Arguments

• string format - String formatting to be used. A format string is composed of zero or more ordinary characters (excluding %) that are copied directly to the result string and control sequences, each of which results in fetching its own parameter. Each control sequence consists of a percent sign (%) followed by one or more of these elements, in order:
• An optional number, a width specifier, that says how many characters (minimum) this conversion should result in.
• An optional precision specifier that says how many decimal digits should be displayed for floating-point numbers.
• A type specifier that says what type the argument data should be treated as. Possible types:
• c: the argument is treated as an integer and presented as a character with that ASCII value.
• d or i: the argument is treated as an integer and presented as a (signed) decimal number.
• o: the argument is treated as an integer and presented as an octal number.
• u: the argument is treated as an integer and presented as an unsigned decimal number.
• x: the argument is treated as an integer and presented as a hexadecimal number (with lower-case letters).
• X: the argument is treated as an integer and presented as a hexadecimal number (with upper-case letters).
• f: the argument is treated as a float and presented as a floating-point number.
• g: the same as e or f, the shortest one is selected.
• G: the same as E or F, the shortest one is selected.
• e: the argument is treated as using the scientific notation with lower-case 'e' (e.g. 1.2e+2).
• E: the argument is treated as using the scientific notation with upper-case 'E' (e.g. 1.2E+2).
• s: the argument is treated as and presented as a string.
• p: the argument is treated as and presented as a pointer address.
• %: a literal percent character. No argument is required.
• IFormatProvider formatProvider - Provider to be used to format the value. Pass a null reference to obtain the numeric format information from the current locale setting of the operating system.

Return value

Resulting string value.

IEnumerator<float>GetEnumerator ( ) #

Returns an IEnumerator for the object.

Return value.

IEnumeratorGetEnumerator ( ) #

Returns an IEnumerator for the object.

Return value

Return value.
Last update: 2022-10-10