<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl2%3AResources%3Ascript_modules%3Avector3d</id>
	<title>Hpl2:Resources:script modules:vector3d - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl2%3AResources%3Ascript_modules%3Avector3d"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl2:Resources:script_modules:vector3d&amp;action=history"/>
	<updated>2026-05-14T06:44:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=Hpl2:Resources:script_modules:vector3d&amp;diff=756&amp;oldid=prev</id>
		<title>Maintenance script: Upload from wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl2:Resources:script_modules:vector3d&amp;diff=756&amp;oldid=prev"/>
		<updated>2020-07-09T13:48:20Z</updated>

		<summary type="html">&lt;p&gt;Upload from wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Vector 3D =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following code provides support for 3D Vectors. Note: These functions will be set out best using the [http://wiki.frictionalgames.com/hpl2/resources/improvnotepad Improved Notepad++ HPS Support].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These functions provide operator overloads to make working with vectors easier. Additionally, string parsing, saving to and loading from variables as well as length and normalisation operations are availible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' '''Download the code ''' '''[http://pastebin.com/HYmRvrB2 here] ''' '''.'''&lt;br /&gt;
''' Paste the code either into your .hps file OR an external file and utilising a [http://wiki.frictionalgames.com/hpl2/resources/preprocess Script Pre-Processer].&lt;br /&gt;
''' Remove the section labeled MATH if you are already using the [[math]] module.&lt;br /&gt;
''' Remove the section labeled STRING PARSING if you are already using the [[stringparsing|String Parsing module]].&lt;br /&gt;
== Documentation - Constructors ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
Vec3()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creates a new vector with each component set to 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
Vec3(float afX, float afY, float afZ)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creates a new vector with the given X,y,Z components&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
Vec3(Vec3 &amp;amp;in v1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creates a new vector with the same components as the passed in vector.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
Vec3(string &amp;amp;in asVecName)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creates a new vector based off a local variable name. See also Vec3::load.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
Vec3(float[] values)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creates a new vector based of a float array with at least 3 elements. Array[0] is the x components, Array[1] the y and Array[2] the z.&lt;br /&gt;
&lt;br /&gt;
== Documentation - Methods ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Todo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Documentation - Examples ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Todo&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
		
	</entry>
</feed>