User Tools

Site Tools


tools:matrix:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tools:matrix:start [2022/04/07 12:29] – [Vectors and Matrices] ursgraftools:matrix:start [2022/04/20 12:45] – [Vectors and Matrices] ursgraf
Line 8: Line 8:
 Vector3<> v;  Vector3<> v; 
 </code> </code>
-as ''Vector3'' is a predefined type with three dimensions and the default element type is ''double''. A ''Vector3'' is identical to the type ''Matrix<3,1,double>''. The vector could be initializer as follows+as ''Vector3'' is a predefined type with three dimensions and the default element type is ''double''. A ''Vector3'' is identical to the type ''Matrix<3,1,double>''. The vector could be initialized as follows
 <code cpp> <code cpp>
 v = {1.5, -2, 0} v = {1.5, -2, 0}
Line 21: Line 21:
      7, 8, 9;      7, 8, 9;
 </code> </code>
-The first three numbers will be filled into the first colon. While the internal representation is simply a one dimensional vector, the matrix could be visualized as +The first three numbers will be filled into the first row. While the internal representation is simply a one dimensional vector, the matrix could be visualized as 
  
 | ^col0^col1^col2^ | ^col0^col1^col2^
tools/matrix/start.txt · Last modified: 2022/04/20 13:29 by ursgraf