Difference between revisions of "Vector"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m
(looks okay, removing tag)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Generated}}
 
 
{{dafunction
 
{{dafunction
 
|name=Vector
 
|name=Vector
Line 6: Line 5:
 
|param1name=x
 
|param1name=x
 
|param1desc=x value for the vector
 
|param1desc=x value for the vector
 +
|param1default=0.0
 
|param2type=float
 
|param2type=float
 
|param2name=y
 
|param2name=y
 
|param2desc=y value for the vector
 
|param2desc=y value for the vector
 +
|param2default=0.0
 
|param3type=float
 
|param3type=float
 
|param3name=z
 
|param3name=z
 
|param3desc=z value for the vector
 
|param3desc=z value for the vector
 +
|param3default=0.0
 
|returntype=vector
 
|returntype=vector
 
|returndesc=Returns a vector with the specified x, y, and z values.
 
|returndesc=Returns a vector with the specified x, y, and z values.
Line 21: Line 23:
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
 
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. -->
 
Returns a new vector with the specified x,y and z values.
 
Returns a new vector with the specified x,y and z values.
 
'''vector''' is a basic data type in Dragon Age's scripting language. It is a series of [[float]]s that define an X, Y, Z coordinate in a map.
 
 
Note that this is not identical to the [[location]] data type, which contains additional information for placing objects in-world.
 
  
 
<!-- == Remarks == -->
 
<!-- == Remarks == -->

Latest revision as of 21:18, 2 March 2010

Creates a vector.

vector Vector(
float x = 0.0,
float y = 0.0,
float z = 0.0
);
Parameters:
x
x value for the vector
y
y value for the vector
z
z value for the vector
Returns:

Returns a vector with the specified x, y, and z values.

Source:

script.ldf

Description

Returns a new vector with the specified x,y and z values.


See also

GetVectorMagnitude, GetVectorNormalize