<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Vec4</id>
	<title>Vec4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Vec4"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Vec4&amp;action=history"/>
	<updated>2026-04-22T00:35:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=Vec4&amp;diff=49&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:Vec4ExampleCode}}  ==Members== {| class=&quot;wikitable&quot;  !|type !|variable !|description |- |float |x | |- |float |y | |- |float |z | |- |float |w | |- |}  ==Constructor== {| class=&quot;wikitable&quot;  !|function !|description |- |Vec4(float x, float y, float z, float w) | |- |Vec4(float value) | |- |Vec4(Vec4 vector) | |- |Vec4(Vec3 vector, float w) | |- |Vec4(Vec2 vector, float z, float w) | |- |Vec4() | |- |}  ==Functions== {| class=&quot;wikitab...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Vec4&amp;diff=49&amp;oldid=prev"/>
		<updated>2025-07-05T13:38:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:Vec4ExampleCode}}  ==Members== {| class=&amp;quot;wikitable&amp;quot;  !|type !|variable !|description |- |float |x | |- |float |y | |- |float |z | |- |float |w | |- |}  ==Constructor== {| class=&amp;quot;wikitable&amp;quot;  !|function !|description |- |&lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt;(float x, float y, float z, float w) | |- |&lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt;(float value) | |- |&lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt;(&lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt; vector) | |- |&lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt;(&lt;a href=&quot;/index.php/Vec3&quot; title=&quot;Vec3&quot;&gt;Vec3&lt;/a&gt; vector, float w) | |- |&lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt;(&lt;a href=&quot;/index.php/Vec2&quot; title=&quot;Vec2&quot;&gt;Vec2&lt;/a&gt; vector, float z, float w) | |- |&lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt;() | |- |}  ==Functions== {| class=&amp;quot;wikitab...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:Vec4ExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Members==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|type&lt;br /&gt;
!|variable&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|y&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|z&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|w&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Constructor==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]](float x, float y, float z, float w)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]](float value)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]([[Vec4]] vector)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]([[Vec3]] vector, float w)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]([[Vec2]] vector, float z, float w)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]()&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec4:dot()|dot]]()&lt;br /&gt;
|Returns the dot product of this vec with itself.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec4:dot(Vec4 vector)|dot]](Vec4 vector)&lt;br /&gt;
|Return the dot product of this with vector.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec4:length()|length]]()&lt;br /&gt;
|Returns the length of this vector.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec4:negate()|negate]]()&lt;br /&gt;
|negate the vector.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec4:clear()|clear]]()&lt;br /&gt;
|set vector to zero.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec4:infinity()|infinity]]()&lt;br /&gt;
|set vector to infinity.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec4:normalize()|normalize]]()&lt;br /&gt;
|normalize the vector and return the old length.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]&lt;br /&gt;
|[[Vec4:normalizeV()|normalizeV]]()&lt;br /&gt;
|return a copy and normalize the return vec.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec4:interPolate(Vec4vector1, Vec4 vector2, float weight)|interPolate]](Vec4 vector1, Vec4 vector2, float weight)&lt;br /&gt;
|Inter polate a vector bettwen two values. weight 0 returns vector1 and at weight 1 vector2 is returned&lt;br /&gt;
|-&lt;br /&gt;
|Vec4&lt;br /&gt;
|[[Vec4:interPolateV(Vec4 vector1, Vec4 vector2, float weight)|interPolateV]](Vec4 vector1, Vec4 vector2, float weight)&lt;br /&gt;
|returns a Inter polate a vector bettwen two values. weight 0 returns vector1 and at weight 1 vector2 is returned&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Vec3:isZero()|isZero]]()&lt;br /&gt;
|returns true when vector length is zero&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|[[Vec4:isInfinity()|isInfinity]]()&lt;br /&gt;
|returns true when vetor length is infinity&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec4:minimize(Vec3 vector)|minimize]](Vec4 vector)&lt;br /&gt;
|Keep the minimum x and y value from this vector and vec&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec4:maximize(Vec4 vector)|maximize]](Vec4 vector)&lt;br /&gt;
|Keep the maximum x and y value from this vector and vec&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec3]]&lt;br /&gt;
|[[Vec4:toVec3()|toVec3]]()&lt;br /&gt;
|return [[Vec3]](x, y ,z)&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2]]&lt;br /&gt;
|[[Vec4:toVec2()|toVec2]]()&lt;br /&gt;
|return [[Vec2]](x, y)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Operators==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|Vec4&lt;br /&gt;
|Vec4 + Vec4&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec4&lt;br /&gt;
|Vec4 - Vec4&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec4&lt;br /&gt;
|Vec4 * float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec4&lt;br /&gt;
|Vec4 / float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|Vec4 == float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>