Beispiel #1
0
 /// <summary>
 ///     Constructs a new instance.
 /// </summary>
 /// <param name="mat4">The incoming float4x4.</param>
 public float3x3(float4x4 mat4)
 {
     Row0 = new float3(mat4.Row0.x, mat4.Row0.y, mat4.Row0.z);
     Row1 = new float3(mat4.Row1.x, mat4.Row1.y, mat4.Row1.z);
     Row2 = new float3(mat4.Row2.x, mat4.Row2.y, mat4.Row2.z);
 }
Beispiel #2
0
 /// <summary>
 ///     Construct a new Quaternion from vector and w components
 /// </summary>
 /// <param name="v">The vector part</param>
 /// <param name="w">The w part</param>
 public Quaternion(float3 v, float w)
 {
     _xyz = v;
     _w   = w;
 }
Beispiel #3
0
 /// <summary>
 ///     Constructs a new instance.
 /// </summary>
 /// <param name="row0">Top row of the matrix</param>
 /// <param name="row1">Second row of the matrix</param>
 /// <param name="row2">Third row of the matrix</param>
 public float3x3(float3 row0, float3 row1, float3 row2)
 {
     Row0 = row0;
     Row1 = row1;
     Row2 = row2;
 }