Browse Source

Docs: Math updates

Greg Tatum 11 years ago
parent
commit
d83f4a03b5
5 changed files with 224 additions and 218 deletions
  1. 11 11
      docs/api/math/Box2.html
  2. 15 18
      docs/api/math/Box3.html
  3. 38 38
      docs/api/math/Vector2.html
  4. 83 81
      docs/api/math/Vector3.html
  5. 77 70
      docs/api/math/Vector4.html

+ 11 - 11
docs/api/math/Box2.html

@@ -43,7 +43,7 @@
 
 
 
 
 
 
-		<h3>.set([page:Vector2 min], [page:Vector2 max]) [page:todo]</h3>
+		<h3>.set([page:Vector2 min], [page:Vector2 max]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		min -- Lower (x, y) boundary of the box. <br />
 		min -- Lower (x, y) boundary of the box. <br />
 		max -- Upper (x, y) boundary of the box.
 		max -- Upper (x, y) boundary of the box.
@@ -52,7 +52,7 @@
 		Sets the lower and upper (x, y) boundaries of this box.
 		Sets the lower and upper (x, y) boundaries of this box.
 		</div>
 		</div>
 
 
-		<h3>.expandByPoint([page:Vector2 point]) [page:Box2]</h3>
+		<h3>.expandByPoint([page:Vector2 point]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		point -- Point that should be included in the box.
 		point -- Point that should be included in the box.
 		</div>
 		</div>
@@ -77,7 +77,7 @@
 		Determines whether or not this box intersects *box*.
 		Determines whether or not this box intersects *box*.
 		</div>
 		</div>
 
 
-		<h3>.setFromPoints([page:Array points]) [page:Box2]</h3>
+		<h3>.setFromPoints([page:Array points]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		points -- Set of points that the resulting box will envelop.
 		points -- Set of points that the resulting box will envelop.
 		</div>
 		</div>
@@ -93,7 +93,7 @@
 		Returns the width and height of this box.
 		Returns the width and height of this box.
 		</div>
 		</div>
 
 
-		<h3>.union([page:Box2 box]) [page:Box2]</h3>
+		<h3>.union([page:Box2 box]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		box -- Box that will be unioned with this box.
 		box -- Box that will be unioned with this box.
 		</div>
 		</div>
@@ -111,7 +111,7 @@
 		Returns point as a proportion of this box's width and height.
 		Returns point as a proportion of this box's width and height.
 		</div>
 		</div>
 
 
-		<h3>.expandByScalar([page:float scalar]) [page:Box2]</h3>
+		<h3>.expandByScalar([page:float scalar]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		scalar -- Distance to expand.
 		scalar -- Distance to expand.
 		</div>
 		</div>
@@ -120,7 +120,7 @@
 		will be contracted.
 		will be contracted.
 		</div>
 		</div>
 
 
-		<h3>.intersect([page:Box2 box]) [page:Box2]</h3>
+		<h3>.intersect([page:Box2 box]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		box -- Box to intersect with.
 		box -- Box to intersect with.
 		</div>
 		</div>
@@ -139,7 +139,7 @@
 		this function also returns true. 
 		this function also returns true. 
 		</div>
 		</div>
 
 
-		<h3>.translate([page:Vector2 offset]) [page:Box2]</h3>
+		<h3>.translate([page:Vector2 offset]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		offset -- Direction and distance of offset.
 		offset -- Direction and distance of offset.
 		</div>
 		</div>
@@ -168,7 +168,7 @@
 		Returns true if this box and *box* share the same lower and upper bounds.
 		Returns true if this box and *box* share the same lower and upper bounds.
 		</div>
 		</div>
 
 
-		<h3>.expandByVector([page:Vector2 vector]) [page:Box2]</h3>
+		<h3>.expandByVector([page:Vector2 vector]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		vector -- Amount to expand this box in each dimension.
 		vector -- Amount to expand this box in each dimension.
 		</div>
 		</div>
@@ -178,7 +178,7 @@
 		this box will be expanded by the y component of *vector* in both directions.
 		this box will be expanded by the y component of *vector* in both directions.
 		</div>
 		</div>
 
 
-		<h3>.copy([page:Box2 box]) [page:Box2]</h3>
+		<h3>.copy([page:Box2 box]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		box -- Box to copy.
 		box -- Box to copy.
 		</div>
 		</div>
@@ -186,7 +186,7 @@
 		Copies the values of *box* to this box.
 		Copies the values of *box* to this box.
 		</div>
 		</div>
 
 
-		<h3>.makeEmpty() [page:Box2]</h3>
+		<h3>.makeEmpty() [page:Box2 this]</h3>
 		<div>
 		<div>
 		Makes this box empty.
 		Makes this box empty.
 		</div>
 		</div>
@@ -216,7 +216,7 @@
 		Returns true if the specified point lies within the boundaries of this box.
 		Returns true if the specified point lies within the boundaries of this box.
 		</div>
 		</div>
 
 
-		<h3>.setFromCenterAndSize([page:Vector2 center], [page:Vector2 size]) [page:Box2]</h3>
+		<h3>.setFromCenterAndSize([page:Vector2 center], [page:Vector2 size]) [page:Box2 this]</h3>
 		<div>
 		<div>
 		center -- Desired center position of the box. <br />
 		center -- Desired center position of the box. <br />
 		size -- Desired x and y dimensions of the box. 
 		size -- Desired x and y dimensions of the box. 

+ 15 - 18
docs/api/math/Box3.html

@@ -9,19 +9,19 @@
 	<body>
 	<body>
 		<h1>[name]</h1>
 		<h1>[name]</h1>
 
 
-		<div class="desc">todo</div>
+		<div class="desc">Represents a boundary box in 3d space.</div>
 
 
 
 
 		<h2>Constructor</h2>
 		<h2>Constructor</h2>
 
 
 
 
-		<h3>[name]([page:todo min], [page:todo max])</h3>
+		<h3>[name]([page:Vector3 min], [page:Vector3 max])</h3>
 		<div>
 		<div>
-		min -- todo <br />
-		max -- todo
+		min -- Lower (x, y, z) boundary of the box.  <br />
+		max -- Upper (x, y, z) boundary of the box.
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Creates a box bounded by min and max
 		</div>
 		</div>
 
 
 		<h2>Properties</h2>
 		<h2>Properties</h2>
@@ -30,44 +30,41 @@
 
 
 		<h3>.[page:Vector3 max]</h3>
 		<h3>.[page:Vector3 max]</h3>
 		<div>
 		<div>
-		todo
+		Upper (x, y, z) boundary of this box.
 		</div> 
 		</div> 
 
 
 		<h3>.[page:Vector3 min]</h3>
 		<h3>.[page:Vector3 min]</h3>
 		<div>
 		<div>
-		todo
+		Lower (x, y, z) boundary of this box.
 		</div> 
 		</div> 
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>
 
 
 
 
 
 
-		<h3>.set([page:todo min], [page:todo max]) [page:todo]</h3>
+		<h3>.set([page:Vector3 min], [page:Vector3 max]) [page:Box3 this]</h3>
 		<div>
 		<div>
-		min -- todo <br />
-		max -- todo
+		min -- Upper (x, y, z) boundary of this box. <br />
+		max -- Lower (x, y, z) boundary of this box.
 		</div>
 		</div>
 		<div>
 		<div>
 		todo
 		todo
 		</div>
 		</div>
 
 
-		<h3>.applyMatrix4([page:todo matrix]) [page:todo]</h3>
+		<h3>.applyMatrix4([page:Matrix4 matrix]) [page:Box3 this]</h3>
 		<div>
 		<div>
-		matrix -- todo
+		matrix -- Transform the box with a matrix.
 		</div>
 		</div>
 		<div>
 		<div>
 		todo
 		todo
 		</div>
 		</div>
 
 
-		<h3>.expandByPoint([page:todo point]) [page:todo]</h3>
+		<h3>.expandByPoint([page:Vector3 point]) [page:Box3 this]</h3>
 		<div>
 		<div>
-		point -- todo
-		</div>
-		<div>
-		todo
+		Expands the box outwards by the point. It takes the min and max values of the box.
 		</div>
 		</div>
 
 
-		<h3>.clampPoint([page:todo point], [page:todo optionalTarget]) [page:todo]</h3>
+		<h3>.clampPoint([page:Vector3 point], [page:todo optionalTarget]) [page:todo]</h3>
 		<div>
 		<div>
 		point -- todo <br />
 		point -- todo <br />
 		optionalTarget -- todo
 		optionalTarget -- todo

+ 38 - 38
docs/api/math/Vector2.html

@@ -42,48 +42,48 @@
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>
 
 
-		<h3>.set( [page:Float x], [page:Float y] ) [page:Vector2]</h3>
+		<h3>.set( [page:Float x], [page:Float y] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Sets value of this vector.
 		Sets value of this vector.
 		</div>
 		</div>
 
 
-		<h3>.copy( [page:Vector2 v] ) [page:Vector2]</h3>
+		<h3>.copy( [page:Vector2 v] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Copies value of *v* to this vector.
 		Copies value of *v* to this vector.
 		</div>
 		</div>
 
 
-		<h3>.add( [page:Vector2 v] ) [page:Vector2]</h3>
+		<h3>.add( [page:Vector2 v] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Adds *v* to this vector.
 		Adds *v* to this vector.
 		</div>
 		</div>
 
 
-		<h3>.addVectors( [page:Vector2 a], [page:Vector2 b] ) [page:Vector2]</h3>
+		<h3>.addVectors( [page:Vector2 a], [page:Vector2 b] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Sets this vector to *a + b*.
 		Sets this vector to *a + b*.
 		</div>
 		</div>
 
 
-		<h3>.sub( [page:Vector2 v] ) [page:Vector2]</h3>
+		<h3>.sub( [page:Vector2 v] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Subtracts *v* from this vector.
 		Subtracts *v* from this vector.
 		</div>
 		</div>
 
 
-		<h3>.subVectors( [page:Vector2 a], [page:Vector2 b] ) [page:Vector2]</h3>
+		<h3>.subVectors( [page:Vector2 a], [page:Vector2 b] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Sets this vector to *a - b*.
 		Sets this vector to *a - b*.
 		</div>
 		</div>
 
 
-		<h3>.multiplyScalar( [page:Float s] ) [page:Vector2]</h3>
+		<h3>.multiplyScalar( [page:Float s] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Multiplies this vector by scalar *s*.
 		Multiplies this vector by scalar *s*.
 		</div>
 		</div>
 
 
-		<h3>.divideScalar( [page:Float s] ) [page:Vector2]</h3>
+		<h3>.divideScalar( [page:Float s] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Divides this vector by scalar *s*.<br />
 		Divides this vector by scalar *s*.<br />
 		Set vector to *( 0, 0 )* if *s == 0*.
 		Set vector to *( 0, 0 )* if *s == 0*.
 		</div>
 		</div>
 
 
-		<h3>.negate() [page:Vector2]</h3>
+		<h3>.negate() [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Inverts this vector.
 		Inverts this vector.
 		</div>
 		</div>
@@ -103,7 +103,7 @@
 		Computes length of this vector.
 		Computes length of this vector.
 		</div>
 		</div>
 
 
-		<h3>.normalize() [page:Vector2]</h3>
+		<h3>.normalize() [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Normalizes this vector.
 		Normalizes this vector.
 		</div>
 		</div>
@@ -118,7 +118,7 @@
 		Computes squared distance of this vector to *v*.
 		Computes squared distance of this vector to *v*.
 		</div>
 		</div>
 
 
-		<h3>.setLength( [page:Float l] ) [page:Vector2]</h3>
+		<h3>.setLength( [page:Float l] ) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		Normalizes this vector and multiplies it by *l*.
 		Normalizes this vector and multiplies it by *l*.
 		</div>
 		</div>
@@ -134,7 +134,7 @@
 		</div>
 		</div>
 
 
 
 
-		<h3>.clamp([page:todo min], [page:todo max]) [page:this]</h3>
+		<h3>.clamp([page:Vector2 min], [page:Vector2 max]) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		min -- [page:Vector2] containing the min x and y values in the desired range <br />
 		min -- [page:Vector2] containing the min x and y values in the desired range <br />
 		max -- [page:Vector2] containing the max x and y values in the desired range
 		max -- [page:Vector2] containing the max x and y values in the desired range
@@ -143,12 +143,7 @@
 		If this vector's x or y value is greater than the max vector's x or y value, it is replaced by the corresponding value. <br />  If this vector's x or y value is less than the min vector's x or y value, it is replace by the corresponding value.
 		If this vector's x or y value is greater than the max vector's x or y value, it is replaced by the corresponding value. <br />  If this vector's x or y value is less than the min vector's x or y value, it is replace by the corresponding value.
 		</div>
 		</div>
 
 
-		<h3>.toArray() [page:Array]</h3>
-		<div>
-		Returns an array [x, y].
-		</div>
-
-		<h3>.lerp([page:todo v], [page:todo alpha]) [page:this]</h3>
+		<h3>.lerp([page:Vector2 v], [page:Float alpha]) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		v -- [page:Vector2] <br />
 		v -- [page:Vector2] <br />
 		alpha -- [page:Float] between 0 and 1;
 		alpha -- [page:Float] between 0 and 1;
@@ -157,33 +152,25 @@
 		Linear interpolation between this vector and v, where alpha is the percent along the line.
 		Linear interpolation between this vector and v, where alpha is the percent along the line.
 		</div>
 		</div>
 
 
-		<h3>.setComponent([page:todo index], [page:todo value]) [page:undefined]</h3>
+		<h3>.setComponent([page:Integer index], [page:Float value]) [page:undefined]</h3>
 		<div>
 		<div>
 		index -- 0 or 1 <br />
 		index -- 0 or 1 <br />
-		value -- [page:todo Float]
+		value -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
 		if index equals 0 method replaces this.x with value. <br />
 		if index equals 0 method replaces this.x with value. <br />
 		if index equals 1 method replaces this.y with value.
 		if index equals 1 method replaces this.y with value.
 		</div>
 		</div>
 
 
-		<h3>.min([page:todo v]) [page:this]</h3>
-		<div>
-		v -- [page:Vector2]
-		</div>
-		<div>
-		If this vector's x or y value is less than v's x or y value, replace that value with the corresponding min value.
-		</div>
-
-		<h3>.addScalar([page:todo s]) [page:this]</h3>
+		<h3>.addScalar([page:Float s]) [page:Vector2 this]</h3>
 		<div>
 		<div>
-		s -- [page:todo Float]
+		s -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
 		Add the scalar value s to this vector's x and y values.
 		Add the scalar value s to this vector's x and y values.
 		</div>
 		</div>
 
 
-		<h3>.getComponent([page:todo index]) [page:todo Float]</h3>
+		<h3>.getComponent([page:Integer index]) [page:Float]</h3>
 		<div>
 		<div>
 		index -- 0 or 1
 		index -- 0 or 1
 		</div>
 		</div>
@@ -192,15 +179,28 @@
 		if index equals 1 returns the y value.
 		if index equals 1 returns the y value.
 		</div>
 		</div>
 
 
-		<h3>.fromArray([page:todo array]) [page:todo this]</h3>
+		<h3>.fromArray([page:Array array]) [page:Vector2 this]</h3>
 		<div>
 		<div>
-		array -- [page:todo Array] of length 2
+		array -- [page:Array] of length 2
 		</div>
 		</div>
 		<div>
 		<div>
 		Sets this vector's x value to be array[0] and y value to be array[1].
 		Sets this vector's x value to be array[0] and y value to be array[1].
 		</div>
 		</div>
 
 
-		<h3>.max([page:todo v]) [page:todo this]</h3>
+		<h3>.toArray() [page:Array]</h3>
+		<div>
+		Returns an array [x, y].
+		</div>
+
+		<h3>.min([page:Vector2 v]) [page:Vector2 this]</h3>
+		<div>
+		v -- [page:Vector2]
+		</div>
+		<div>
+		If this vector's x or y value is less than v's x or y value, replace that value with the corresponding min value.
+		</div>
+
+		<h3>.max([page:Vector2 v]) [page:Vector2 this]</h3>
 		<div>
 		<div>
 		v -- [page:Vector2]
 		v -- [page:Vector2]
 		</div>
 		</div>
@@ -208,17 +208,17 @@
 		If this vector's x or y value is greater than v's x or y value, replace that value with the corresponding max value.
 		If this vector's x or y value is greater than v's x or y value, replace that value with the corresponding max value.
 		</div>
 		</div>
 
 
-		<h3>.setX([page:todo x]) [page:todo this]</h3>
+		<h3>.setX([page:Float x]) [page:Vector2 this]</h3>
 		<div>
 		<div>
-		x -- [page:todo Float]
+		x -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
 		replace this vector's x value with x.
 		replace this vector's x value with x.
 		</div>
 		</div>
 
 
-		<h3>.setY([page:todo y]) [page:todo this]</h3>
+		<h3>.setY([page:Float y]) [page:Vector2 this]</h3>
 		<div>
 		<div>
-		y -- [page:todo Float]
+		y -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
 		replace this vector's y value with y.
 		replace this vector's y value with y.

+ 83 - 81
docs/api/math/Vector3.html

@@ -47,63 +47,63 @@
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>
 
 
-		<h3>.set( [page:Float x], [page:Float y], [page:Float z] ) [page:this]</h3>
+		<h3>.set( [page:Float x], [page:Float y], [page:Float z] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets value of this vector.
 		Sets value of this vector.
 		</div>
 		</div>
 
 
-		<h3>.setX( [page:Float x] ) [page:this]</h3>
+		<h3>.setX( [page:Float x] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets x value of this vector.
 		Sets x value of this vector.
 		</div>
 		</div>
 
 
-		<h3>.setY( [page:Float y] ) [page:this]</h3>
+		<h3>.setY( [page:Float y] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets y value of this vector.
 		Sets y value of this vector.
 		</div>
 		</div>
 
 
-		<h3>.setZ( [page:Float z] ) [page:this]</h3>
+		<h3>.setZ( [page:Float z] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets z value of this vector.
 		Sets z value of this vector.
 		</div>
 		</div>
 
 
-		<h3>.copy( [page:Vector3 v] ) [page:this]</h3>
+		<h3>.copy( [page:Vector3 v] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Copies value of *v* to this vector.
 		Copies value of *v* to this vector.
 		</div>
 		</div>
 
 
-		<h3>.add( [page:Vector3 v] ) [page:this]</h3>
+		<h3>.add( [page:Vector3 v] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Adds *v* to this vector.
 		Adds *v* to this vector.
 		</div>
 		</div>
 
 
-		<h3>.addVectors( [page:Vector3 a], [page:Vector3 b] ) [page:this]</h3>
+		<h3>.addVectors( [page:Vector3 a], [page:Vector3 b] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets this vector to *a + b*.
 		Sets this vector to *a + b*.
 		</div>
 		</div>
 
 
-		<h3>.sub( [page:Vector3 v] ) [page:this]</h3>
+		<h3>.sub( [page:Vector3 v] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Subtracts *v* from this vector.
 		Subtracts *v* from this vector.
 		</div>
 		</div>
 
 
-		<h3>.subVectors( [page:Vector3 a], [page:Vector3 b] ) [page:this]</h3>
+		<h3>.subVectors( [page:Vector3 a], [page:Vector3 b] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets this vector to *a - b*.
 		Sets this vector to *a - b*.
 		</div>
 		</div>
 
 
-		<h3>.multiplyScalar( [page:Float s] ) [page:this]</h3>
+		<h3>.multiplyScalar( [page:Float s] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Multiplies this vector by scalar *s*.
 		Multiplies this vector by scalar *s*.
 		</div>
 		</div>
 
 
-		<h3>.divideScalar( [page:Float s] ) [page:this]</h3>
+		<h3>.divideScalar( [page:Float s] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Divides this vector by scalar *s*.<br />
 		Divides this vector by scalar *s*.<br />
 		Set vector to *( 0, 0, 0 )* if *s == 0*.
 		Set vector to *( 0, 0, 0 )* if *s == 0*.
 		</div>
 		</div>
 
 
-		<h3>.negate() [page:this]</h3>
+		<h3>.negate() [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Inverts this vector.
 		Inverts this vector.
 		</div>
 		</div>
@@ -129,7 +129,7 @@
 		[link:http://en.wikipedia.org/wiki/Taxicab_geometry]
 		[link:http://en.wikipedia.org/wiki/Taxicab_geometry]
 		</div>
 		</div>
 
 
-		<h3>.normalize() [page:this]</h3>
+		<h3>.normalize() [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Normalizes this vector. Transforms this Vector into a Unit vector by dividing the vector by it's length.
 		Normalizes this vector. Transforms this Vector into a Unit vector by dividing the vector by it's length.
 		</div>
 		</div>
@@ -144,27 +144,27 @@
 		Computes squared distance of this vector to *v*.
 		Computes squared distance of this vector to *v*.
 		</div>
 		</div>
 
 
-		<h3>.setLength( [page:Float l] ) [page:this]</h3>
+		<h3>.setLength( [page:Float l] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Normalizes this vector and multiplies it by *l*.
 		Normalizes this vector and multiplies it by *l*.
 		</div>
 		</div>
 
 
-		<h3>.cross( [page:Vector3 v] ) [page:this]</h3>
+		<h3>.cross( [page:Vector3 v] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets this vector to cross product of itself and *v*.
 		Sets this vector to cross product of itself and *v*.
 		</div>
 		</div>
 
 
-		<h3>.crossVectors( [page:Vector3 a], [page:Vector3 b] ) [page:this]</h3>
+		<h3>.crossVectors( [page:Vector3 a], [page:Vector3 b] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets this vector to cross product of *a* and *b*.
 		Sets this vector to cross product of *a* and *b*.
 		</div>
 		</div>
 
 
-		<h3>.getPositionFromMatrix( [page:Matrix4 m] ) [page:this]</h3>
+		<h3>.getPositionFromMatrix( [page:Matrix4 m] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets this vector extracting position from matrix transform.
 		Sets this vector extracting position from matrix transform.
 		</div>
 		</div>
 
 
-		<h3>.getScaleFromMatrix( [page:Matrix4 m] ) [page:this]</h3>
+		<h3>.getScaleFromMatrix( [page:Matrix4 m] ) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		Sets this vector extracting scale from matrix transform.
 		Sets this vector extracting scale from matrix transform.
 		</div>
 		</div>
@@ -180,16 +180,17 @@
 		</div>
 		</div>
 
 
 
 
-		<h3>.clamp([page:todo min], [page:todo max]) [page:this]</h3>
+		<h3>.clamp([page:Vector3 min], [page:Vector3 max]) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		min -- [page:Vector3] <br />
 		min -- [page:Vector3] <br />
 		max -- [page:Vector3]
 		max -- [page:Vector3]
 		</div>
 		</div>
 		<div>
 		<div>
-		If this vector's x, y or z value is greater than the max vector's x, y or z value, it is replaced by the corresponding value. <br />  If this vector's x, y or z value is less than the min vector's x, y or z value, it is replace by the corresponding value.
+		If this vector's x, y or z value is greater than the max vector's x, y or z value, it is replaced by the corresponding value. <br /><br />
+		If this vector's x, y or z value is less than the min vector's x, y or z value, it is replace by the corresponding value.
 		</div>
 		</div>
 
 
-		<h3>.applyMatrix3([page:todo m]) [page:this]</h3>
+		<h3>.applyMatrix3([page:Matrix3 m]) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		m -- [page:Matrix3]
 		m -- [page:Matrix3]
 		</div>
 		</div>
@@ -197,58 +198,66 @@
 		Multiplies this vector times a 3 x 3 matrix.
 		Multiplies this vector times a 3 x 3 matrix.
 		</div>
 		</div>
 
 
-		<h3>.applyMatrix4([page:todo m]) [page:todo this]</h3>
+		<h3>.applyMatrix4([page:Matrix3 m]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		m -- [page:todo Matrix4]
+		m -- [page:Matrix4]
 		</div>
 		</div>
 		<div>
 		<div>
 		Multiplies this vector by 4 x 3 subset of a Matrix4.
 		Multiplies this vector by 4 x 3 subset of a Matrix4.
 		</div>
 		</div>
 
 
-		<h3>.projectOnPlane([page:todo planeNormal]) [page:todo this]</h3>
+		<h3>.projectOnPlane([page:Vector3 planeNormal]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		planeNormal -- [page:todo Plane.normal]
+		planeNormal -- [page:Vector3 planeNormal] A vector representing a plane normal.
 		</div>
 		</div>
 		<div>
 		<div>
 		Projects this vector onto a plane by subtracting this vector projected onto the plane's normal from this vector.
 		Projects this vector onto a plane by subtracting this vector projected onto the plane's normal from this vector.
 		</div>
 		</div>
 
 
-		<h3>.projectOnVector([page:todo vector]) [page:todo this]</h3>
+		<h3>.projectOnVector([page:Vector3]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		vector -- [page:todo Vector3]
+		vector -- [page:Vector3]
 		</div>
 		</div>
 		<div>
 		<div>
 		Projects this vector onto another vector.
 		Projects this vector onto another vector.
 		</div>
 		</div>
 
 
-		<h3>.addScalar([page:todo s]) [page:todo this]</h3>
+		<h3>.addScalar([page:Float]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		s -- [page:todo Float]
+		s -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
 		Adds a s to this vector.
 		Adds a s to this vector.
 		</div>
 		</div>
 
 
-		<h3>.divide([page:todo v]) [page:todo this]</h3>
+		<h3>.divide([page:Vector3 v]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		v -- [page:todo Vector3]
+		v -- [page:Vector3]
 		</div>
 		</div>
 		<div>
 		<div>
 		Divides this vector by vector v.
 		Divides this vector by vector v.
 		</div>
 		</div>
 
 
-		<h3>.min([page:todo v]) [page:todo]</h3>
+		<h3>.min([page:Vector3 v]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		v -- [page:todo Vector3]
+		v -- [page:Vector3]
 		</div>
 		</div>
 		<div>
 		<div>
 		If this vector's x, y, or z value is less than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
 		If this vector's x, y, or z value is less than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
 		</div>
 		</div>
 
 
-		<h3>.setComponent([page:todo index], [page:todo value]) [page:todo this]</h3>
+		<h3>.max([page:Vector3 v]) [page:Vector3 this]</h3>
+		<div>
+		v -- [page:Vector3]
+		</div>
+		<div>
+		If this vector's x, y, or z value is greater than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
+		</div>
+
+		<h3>.setComponent([page:Integer index], [page:Float value]) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		index -- 0, 1, or 2 <br />
 		index -- 0, 1, or 2 <br />
-		value -- [page:todo Float]
+		value -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
 		If index equals 0 the method sets this vector's x value to value <br />
 		If index equals 0 the method sets this vector's x value to value <br />
@@ -256,111 +265,104 @@
 		If index equals 2 the method sets this vector's z value to value
 		If index equals 2 the method sets this vector's z value to value
 		</div>
 		</div>
 
 
-		<h3>.transformDirection([page:todo m]) [page:todo this]</h3>
+		<h3>.transformDirection([page:Matrix4 m]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		m -- [page:todo Matrix4]
+		m -- [page:Matrix4]
 		</div>
 		</div>
 		<div>
 		<div>
-		Multiplies this vector by a 3 x 3 subset of a Matrix4 and then normalizes the results.
+		Transforms the direction of this vector by a matrix (a 3 x 3 subset of a Matrix4) and then normalizes the result.
 		</div>
 		</div>
 
 
-		<h3>.multiplyVectors([page:todo a], [page:todo b]) [page:todo this]</h3>
+		<h3>.multiplyVectors([page:Vector3 a], [page:Vector3 b]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		a -- [page:todo Vector3] <br />
-		b -- [page:todo Vector3]
+		a -- [page:Vector3] <br />
+		b -- [page:Vector3]
 		</div>
 		</div>
 		<div>
 		<div>
-		Sets this vector equal the result of multiplying vector a by vector b.
+		Sets this vector equal to the result of multiplying vector a by vector b.
 		</div>
 		</div>
 
 
-		<h3>.getComponent([page:todo index]) [page:todo Float]</h3>
+		<h3>.getComponent([page:Integer index]) [page:Float]</h3>
 		<div>
 		<div>
-		index -- 0, 1, or 2
+		index -- [page:Integer] 0, 1, or 2
 		</div>
 		</div>
 		<div>
 		<div>
-		If index equals 0 the method returns this vector's x value <br />
-		If index equals 1 the method returns this vector's y value <br />
-		If index equals 2 the method returns this vector's z value
+		
+		Returns the value of the vector component x, y, or z by an index. <br /><br />
+		
+		Index 0: x <br />
+		Index 1: y <br />
+		Index 2: z <br />
 		</div>
 		</div>
 
 
-		<h3>.applyAxisAngle([page:todo axis], [page:todo angle]) [page:todo this]</h3>
+		<h3>.applyAxisAngle([page:Vector3 axis], [page:Float angle]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		axis -- a normalized [page:todo Vector3] <br />
-		angle -- an angle in radians
+		axis -- A normalized [page:Vector3] <br />
+		angle -- An angle in radians
 		</div>
 		</div>
 		<div>
 		<div>
 		Applies a rotation specified by an axis and an angle to this vector.
 		Applies a rotation specified by an axis and an angle to this vector.
 		</div>
 		</div>
 
 
-		<h3>.lerp([page:todo v], [page:todo alpha]) [page:todo this]</h3>
+		<h3>.lerp([page:Vector3 v], [page:Float alpha]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		v -- [page:todo Vector3] <br />
-		alpha -- [page:todo Float] between 0 and 1.
+		v -- [page:Vector3] <br />
+		alpha -- [page:Float] between 0 and 1.
 		</div>
 		</div>
 		<div>
 		<div>
 		Linear Interpolation between this vector and vector v, where alpha is the percent along the line.
 		Linear Interpolation between this vector and vector v, where alpha is the percent along the line.
 		</div>
 		</div>
 
 
-		<h3>.max([page:todo v]) [page:todo this]</h3>
-		<div>
-		v -- [page:todo Vector3]
-		</div>
-		<div>
-		If this vector's x, y, or z value is greater than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
-		</div>
-
-		<h3>.angleTo([page:todo v]) [page:todo Float]</h3>
+		<h3>.angleTo([page:Vector3 v]) [page:Float]</h3>
 		<div>
 		<div>
-		v -- [page:todo Vector3]
+		v -- [page:Vector3]
 		</div>
 		</div>
 		<div>
 		<div>
 		Returns the angle between this vector and vector v in radians.
 		Returns the angle between this vector and vector v in radians.
 		</div>
 		</div>
 
 
-		<h3>.getColumnFromMatrix([page:todo index], [page:todo matrix]) [page:todo this]</h3>
+		<h3>.getColumnFromMatrix([page:Integer index], [page:Matrix4 matrix]) [page:Vector3 this]</h3>
 		<div>
 		<div>
 		index -- 0, 1, 2, or 3 <br />
 		index -- 0, 1, 2, or 3 <br />
-		matrix -- [page:todo Matrix4]
+		matrix -- [page:Matrix4]
 		</div>
 		</div>
 		<div>
 		<div>
 		Sets this vector's x, y, and z equal to the column of the matrix specified by the index.
 		Sets this vector's x, y, and z equal to the column of the matrix specified by the index.
 		</div>
 		</div>
 
 
-		<h3>.reflect([page:todo vector]) [page:todo this]</h3>
+		<h3>.reflect([page:Vector3 vector]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		vector -- [page:todo Vector3] the vector to reflect about
+		vector -- [page:Vector3] the vector to reflect about
 		</div>
 		</div>
 		<div>
 		<div>
 		Reflects this vector about a vector.
 		Reflects this vector about a vector.
 		</div>
 		</div>
 
 
-		<h3>.fromArray([page:todo array]) [page:todo this]</h3>
+		<h3>.fromArray([page:Array array]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		array -- [page:todo Array]
+		array -- [page:Array] [x, y, z]
 		</div>
 		</div>
 		<div>
 		<div>
-		Assigns this vectors x value to array[0]. <br />
-		Assigns this vectors y value to array[1]. <br />
-		Assigns this vectors z value to array[2]. <br />
+		Sets the vector's components based on an array formatted like [x, y, z]
 		</div>
 		</div>
 
 
-		<h3>.multiply([page:todo v]) [page:todo this]</h3>
+		<h3>.multiply([page:Vector3 v]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		v -- [page:todo Vector3] <br />
+		v -- [page:Vector3] <br />
 		</div>
 		</div>
 		<div>
 		<div>
 		Multipies this vector by vector v.
 		Multipies this vector by vector v.
 		</div>
 		</div>
 
 
-		<h3>.applyProjection([page:todo m]) [page:todo ths]</h3>
+		<h3>.applyProjection([page:Matrix4 m]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		m -- [page:todo Matrix4] projection matrix.
+		m -- [page:Matrix4] projection matrix.
 		</div>
 		</div>
 		<div>
 		<div>
 		Multiplies this vector and m, and divides by perspective.
 		Multiplies this vector and m, and divides by perspective.
 		</div>
 		</div>
 
 
-		<h3>.toArray() [page:todo Array]</h3>
+		<h3>.toArray() [page:Array]</h3>
 		<div>
 		<div>
 		Assigns this vector's x value to array[0]. <br />
 		Assigns this vector's x value to array[0]. <br />
 		Assigns this vector's y value to array[1]. <br />
 		Assigns this vector's y value to array[1]. <br />
@@ -368,17 +370,17 @@
 		Returns the created array.
 		Returns the created array.
 		</div>
 		</div>
 
 
-		<h3>.applyEuler( [page:todo euler] ) [page:todo this]</h3>
+		<h3>.applyEuler([page:Euler euler]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		euler -- [page:todo Euler]
+		euler -- [page:Euler]
 		</div>
 		</div>
 		<div>
 		<div>
 		Applies euler transform to this vector by converting the [page:Euler] obect to a [page:Quaternion] and applying.
 		Applies euler transform to this vector by converting the [page:Euler] obect to a [page:Quaternion] and applying.
 		</div>
 		</div>
 
 
-		<h3>.applyQuaternion([page:todo q]) [page:todo this]</h3>
+		<h3>.applyQuaternion([page:Quaternion quaternion]) [page:Vector3 this]</h3>
 		<div>
 		<div>
-		q -- [page:Quaternion]
+		quaternion -- [page:Quaternion]
 		</div>
 		</div>
 		<div>
 		<div>
 		Applies a [page:Quaternion] transform to this vector.
 		Applies a [page:Quaternion] transform to this vector.

+ 77 - 70
docs/api/math/Vector4.html

@@ -17,13 +17,10 @@
 
 
 		<h3>[name]( [page:Float x], [page:Float y], [page:Float z], [page:Float w] )</h3>
 		<h3>[name]( [page:Float x], [page:Float y], [page:Float z], [page:Float w] )</h3>
 		<div>
 		<div>
-		x -- todo <br />
-		y -- todo <br />
-		z -- todo <br />
-		w -- todo
-		</div>
-		<div>
-		todo
+		x -- [page:Float] <br />
+		y -- [page:Float] <br />
+		z -- [page:Float] <br />
+		w -- [page:Float]
 		</div>
 		</div>
 
 
 
 
@@ -40,22 +37,22 @@
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>
 
 
-		<h3>.set( [page:Float x], [page:Float y], [page:Float z], [page:Float w] ) [page:Vector4]</h3>
+		<h3>.set( [page:Float x], [page:Float y], [page:Float z], [page:Float w] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Sets value of this vector.
 		Sets value of this vector.
 		</div>
 		</div>
 
 
-		<h3>.copy( [page:Vector4 v] ) [page:Vector4]</h3>
+		<h3>.copy( [page:Vector4 v] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Copies value of *v* to this vector.
 		Copies value of *v* to this vector.
 		</div>
 		</div>
 
 
-		<h3>.add( [page:Vector4 v] ) [page:Vector4]</h3>
+		<h3>.add( [page:Vector4 v] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Adds *v* to this vector.
 		Adds *v* to this vector.
 		</div>
 		</div>
 
 
-		<h3>.addVectors( [page:Vector4 a], [page:Vector4 b] ) [page:Vector4]</h3>
+		<h3>.addVectors( [page:Vector4 a], [page:Vector4 b] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Sets this vector to *a + b*.
 		Sets this vector to *a + b*.
 		</div>
 		</div>
@@ -65,23 +62,23 @@
 		Subtracts *v* from this vector.
 		Subtracts *v* from this vector.
 		</div>
 		</div>
 
 
-		<h3>.subVectors( [page:Vector4 a], [page:Vector4 b] ) [page:Vector4]</h3>
+		<h3>.subVectors( [page:Vector4 a], [page:Vector4 b] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Sets this vector to *a - b*.
 		Sets this vector to *a - b*.
 		</div>
 		</div>
 
 
-		<h3>.multiplyScalar( [page:Float s] ) [page:Vector4]</h3>
+		<h3>.multiplyScalar( [page:Float s] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Multiplies this vector by scalar *s*.
 		Multiplies this vector by scalar *s*.
 		</div>
 		</div>
 
 
-		<h3>.divideScalar( [page:Float s] ) [page:Vector4]</h3>
+		<h3>.divideScalar( [page:Float s] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Divides this vector by scalar *s*.<br />
 		Divides this vector by scalar *s*.<br />
 		Set vector to *( 0, 0, 0 )* if *s == 0*.
 		Set vector to *( 0, 0, 0 )* if *s == 0*.
 		</div>
 		</div>
 
 
-		<h3>.negate() [page:Vector4]</h3>
+		<h3>.negate() [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Inverts this vector.
 		Inverts this vector.
 		</div>
 		</div>
@@ -101,17 +98,17 @@
 		Computes length of this vector.
 		Computes length of this vector.
 		</div>
 		</div>
 
 
-		<h3>.normalize() [page:Vector4]</h3>
+		<h3>.normalize() [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Normalizes this vector.
 		Normalizes this vector.
 		</div>
 		</div>
 
 
-		<h3>.setLength( [page:Float l] ) [page:Vector4]</h3>
+		<h3>.setLength( [page:Float l] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Normalizes this vector and multiplies it by *l*.
 		Normalizes this vector and multiplies it by *l*.
 		</div>
 		</div>
 
 
-		<h3>.lerp( [page:Vector4 v], [page:Float alpha] ) [page:Vector4]</h3>
+		<h3>.lerp( [page:Vector4 v], [page:Float alpha] ) [page:Vector4 this]</h3>
 		<div>
 		<div>
 		Linearly interpolate between this vector and *v* with *alpha* factor.
 		Linearly interpolate between this vector and *v* with *alpha* factor.
 		</div>
 		</div>
@@ -122,136 +119,146 @@
 		</div>
 		</div>
 
 
 
 
-		<h3>.clamp([page:todo min], [page:todo max]) [page:todo]</h3>
+		<h3>.clamp([page:Vector4 min], [page:Vector4 max]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		min -- todo <br />
-		max -- todo
+		min -- [page:Vector4] <br />
+		max -- [page:Vector4]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
-		</div>
+		If this vector's x, y, z, or w value is greater than the max vector's x, y, z, or w value, it is replaced by the corresponding value.<br/><br/>
 
 
-		<h3>.toArray() [page:todo]</h3>
-		<div>
-		todo
+		If this vector's x, y, z, or w value is less than the min vector's x, y, z, or w value, it is replace by the corresponding value.
 		</div>
 		</div>
 
 
-		<h3>.applyMatrix4([page:todo m]) [page:todo]</h3>
+		<h3>.applyMatrix4([page:Matrix4 m]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		m -- todo
+		m -- [page:Matrix4]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Transforms the vector by the matrix.
 		</div>
 		</div>
 
 
-		<h3>.min([page:todo v]) [page:todo]</h3>
+		<h3>.min([page:Vector4 v]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		v -- todo
+		v -- [page:Vector4]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		If this vector's x, y, z, or w value is less than vector v's x, y, z, or w value, that value is replaced by the corresponding vector v value.
 		</div>
 		</div>
 
 
-		<h3>.max([page:todo v]) [page:todo]</h3>
+		<h3>.max([page:Vector4 v]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		v -- todo
+		v -- [page:Vector4]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		If this vector's x, y, z, or w value is greater than vector v's x, y, z, or w value, that value is replaced by the corresponding vector v value. 
 		</div>
 		</div>
 
 
-		<h3>.setAxisAngleFromRotationMatrix([page:todo m]) [page:todo]</h3>
+		<h3>.addScalar([page:Float s]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		m -- todo
+		s -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Adds a scalar value to all of the vector's components.
 		</div>
 		</div>
 
 
-		<h3>.addScalar([page:todo s]) [page:todo]</h3>
+		<h3>.equals([page:Vector4 v]) [page:Boolean]</h3>
 		<div>
 		<div>
-		s -- todo
+		v -- [page:Vector4]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Checks to see if this vector matches vector v.
 		</div>
 		</div>
-
-		<h3>.equals([page:todo v]) [page:todo]</h3>
+		
+		<h3>.setAxisAngleFromRotationMatrix([page:Matrix4 m]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		v -- todo
+		m -- [page:Matrix4]
 		</div>
 		</div>
 		<div>
 		<div>
 		todo
 		todo
 		</div>
 		</div>
 
 
-		<h3>.setAxisAngleFromQuaternion([page:todo q]) [page:todo]</h3>
+		<h3>.setAxisAngleFromQuaternion([page:Quaternion q]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		q -- todo
+		q -- [page:Quaternion]
 		</div>
 		</div>
 		<div>
 		<div>
 		todo
 		todo
 		</div>
 		</div>
 
 
-		<h3>.setW([page:todo w]) [page:todo]</h3>
+		<h3>.getComponent([page:Integer index]) [page:Float]</h3>
 		<div>
 		<div>
-		w -- todo
+		index -- [page:Integer] 0, 1, 2, or 3
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Returns the value of the vector component x, y, or z by an index.<br/><br/>
+
+		Index 0: x<br/>
+		Index 1: y<br/>
+		Index 2: z<br/>
+		Index 3: w<br/>
+ 
 		</div>
 		</div>
 
 
-		<h3>.getComponent([page:todo index]) [page:todo]</h3>
+		<h3>.setComponent([page:Integer index], [page:Float value])</h3>
 		<div>
 		<div>
-		index -- todo
+		index -- [page:Integer] 0 - 3 <br />
+		value -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
 		todo
 		todo
 		</div>
 		</div>
-
-		<h3>.fromArray([page:todo array]) [page:todo]</h3>
+		
+		<h3>.fromArray([page:Array array]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		array -- todo
+		array -- [page:Array] An array formatted [x, y, z, w]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Sets the vector's components based on an array formatted like [x, y, z, w]
 		</div>
 		</div>
 
 
-		<h3>.lengthManhattan() [page:todo]</h3>
+		<h3>.toArray() [page:Array]</h3>
 		<div>
 		<div>
-		todo
+		Returns an array in the format [x, y, z, w]
 		</div>
 		</div>
 
 
-		<h3>.setComponent([page:todo index], [page:todo value]) [page:todo]</h3>
+		<h3>.lengthManhattan() [page:Float]</h3>
 		<div>
 		<div>
-		index -- todo <br />
-		value -- todo
+		Computes Manhattan length of this vector.<br />
+		[link:http://en.wikipedia.org/wiki/Taxicab_geometry]
 		</div>
 		</div>
+
+
+		<h3>.setX([page:Float x]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		todo
+		x -- [page:Float]
+		</div>
+		<div>
+		Sets the x component of the vector.
 		</div>
 		</div>
 
 
-		<h3>.setX([page:todo x]) [page:todo]</h3>
+		<h3>.setY([page:Float y]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		x -- todo
+		y -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Sets the y component of the vector.
 		</div>
 		</div>
 
 
-		<h3>.setY([page:todo y]) [page:todo]</h3>
+		<h3>.setZ([page:Float z]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		y -- todo
+		z -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Sets the z component of the vector.
 		</div>
 		</div>
 
 
-		<h3>.setZ([page:todo z]) [page:todo]</h3>
+		<h3>.setW([page:Float w]) [page:Vector4 this]</h3>
 		<div>
 		<div>
-		z -- todo
+		w -- [page:Float]
 		</div>
 		</div>
 		<div>
 		<div>
-		todo
+		Sets the w component of the vector.
 		</div>
 		</div>
 
 
 		<h2>Source</h2>
 		<h2>Source</h2>