<?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=Vec3</id>
	<title>Vec3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=Vec3"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Vec3&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=Vec3&amp;diff=5&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:Vec3ExampleCode}}  ==Members== {| class=&quot;wikitable&quot;  !|type !|variable !|description |- |float |x | |- |float |y | |- |float |z | |- |}  ==Constructor== {| class=&quot;wikitable&quot;  !|function !|description |- |Vec3(float value) | |- |Vec3(float x, float y, float z) | |- |Vec3(Vec2 vec, float z) | |- |Vec3(Vec3 vector) | |- |Vec3() | |- |}  ==Functions== {| class=&quot;wikitable&quot; !|return !|function !|description |- |float |dot() |Returns the dot product of this ve...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=Vec3&amp;diff=5&amp;oldid=prev"/>
		<updated>2025-07-05T12:57:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:Vec3ExampleCode}}  ==Members== {| class=&amp;quot;wikitable&amp;quot;  !|type !|variable !|description |- |float |x | |- |float |y | |- |float |z | |- |}  ==Constructor== {| class=&amp;quot;wikitable&amp;quot;  !|function !|description |- |Vec3(float value) | |- |Vec3(float x, float y, float z) | |- |Vec3(Vec2 vec, float z) | |- |Vec3(Vec3 vector) | |- |Vec3() | |- |}  ==Functions== {| class=&amp;quot;wikitable&amp;quot; !|return !|function !|description |- |float |&lt;a href=&quot;/index.php?title=Vec3:dot()&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Vec3:dot() (page does not exist)&quot;&gt;dot&lt;/a&gt;() |Returns the dot product of this ve...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:Vec3ExampleCode}}&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;
|}&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;
|Vec3(float value)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec3(float x, float y, float z)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec3(Vec2 vec, float z)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec3(Vec3 vector)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec3()&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;
|[[Vec3:dot()|dot]]()&lt;br /&gt;
|Returns the dot product of this vec with itself.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec3:dot(Vec3 vector)|dot]](Vec3 vector)&lt;br /&gt;
|Return the dot product of this with vector.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec3:length()|length]]()&lt;br /&gt;
|Returns the length of this vector.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec3:getXYDist()|getXYDist]]()&lt;br /&gt;
|Returns x + y.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec3:negate()|negate]]()&lt;br /&gt;
|negate the vector.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec3:clear()|clear]]()&lt;br /&gt;
|set vector to zero.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec3:infinity()|infinity]]()&lt;br /&gt;
|set vector to infinity.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec3:normalize()|normalize]]()&lt;br /&gt;
|normalize the vector and return the old length.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec3]]&lt;br /&gt;
|[[Vec3:normalizeV()|normalizeV]]()&lt;br /&gt;
|return a copy and normalize the return vec.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec3:crossProduct(Vec3 vector)|crossProduct]](Vec3 vector)&lt;br /&gt;
|Calculate cross product with the given vector.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec3:crossProduct(Vec3 vector1, Vec3 vector2)|crossProduct]](Vec3 vector1, Vec3 vector2)&lt;br /&gt;
|Calculate cross product with the given vectors.&lt;br /&gt;
|-&lt;br /&gt;
|Vec3&lt;br /&gt;
|[[Vec3:crossProductV(Vec3 vector)|crossProductV]](Vec3 vector)&lt;br /&gt;
|Calculate cross product with the given vector.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec3:interPolate(Vec3 vector1, Vec3 vector2, float weight)|interPolate]](Vec3 vector1, Vec3 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;
|Vec3&lt;br /&gt;
|[[Vec3:interPolateV(Vec3 vector1, Vec3 vector2, float weight)|interPolateV]](Vec3 vector1, Vec3 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;
|[[Vec3:isInfinity()|isInfinity]]()&lt;br /&gt;
|returns true when vetor length is infinity&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[Vec3:minimize(Vec3 vector)|minimize]](Vec3 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;
|[[Vec3:maximize(Vec3 vector)|maximize]](Vec3 vector)&lt;br /&gt;
|Keep the maximum x and y value from this vector and vec&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec3:angle(Vec3 vector)|angle]](Vec3 vector)&lt;br /&gt;
|return angle bettwen this and vec that cen be nonNormalized&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[Vec3:angle(Vec3 vector1, Vec3 vector2)|angle]](Vec3 vector1, Vec3 vector2)&lt;br /&gt;
|return angle bettwen the two given vectors that my be nonNormalized&lt;br /&gt;
|-&lt;br /&gt;
|Vec2&lt;br /&gt;
|[[Vec3: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;
|Vec3&lt;br /&gt;
|Vec3 + Vec3&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec3&lt;br /&gt;
|Vec3 - Vec3&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec3&lt;br /&gt;
|Vec3 * float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Vec3&lt;br /&gt;
|Vec3 / float&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|bool&lt;br /&gt;
|Vec3 == Vec3&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>