TRANSFORM VECTOR: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
Created page with "{{Up}} {{Command|syntax=TRANSFORM_VECTOR <matrix array>, <vx>, <vy>, <vz> |description=:Transform a vector. |param1=<matrix array>|param1_desc={{param..."
 
Mikeo (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
:VY = 0.0
:VY = 0.0
:VZ = 1.0
:VZ = 1.0
:TRANSFORM_VECTOR Matrix1, XX, VY, VZ
:TRANSFORM_VECTOR Matrix1, VX, VY, VZ
<br>
<br>
:This will get the matrix for CS 3 and it to transform a vector along the depth axis.
:This will get the matrix for CS 3 and use it to transform a vector to give the depth axis of that CS in world co-ordinates.


[[Category:Matrices]]
[[Category:Matrices]]

Latest revision as of 18:05, 20 October 2014

Up

Command

TRANSFORM_VECTOR <matrix array>, <vx>, <vy>, <vz>


Transform a vector.

Parameters

<matrix array>
Name of Matrix variable
<x>
x vector
<y>
y vector
<z>
z vector

Example

GLOBAL Matrix1(12)


GET_CS_MATRIX 3, Matrix1
VX = 0.0
VY = 0.0
VZ = 1.0
TRANSFORM_VECTOR Matrix1, VX, VY, VZ


This will get the matrix for CS 3 and use it to transform a vector to give the depth axis of that CS in world co-ordinates.