double3.gen.cs 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. //
  5. // Changes to this file may cause incorrect behavior and will be lost if
  6. // the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. using System;
  10. using System.Runtime.CompilerServices;
  11. using System.Diagnostics;
  12. #pragma warning disable 0660, 0661
  13. namespace Unity.Mathematics
  14. {
  15. [DebuggerTypeProxy(typeof(double3.DebuggerProxy))]
  16. [System.Serializable]
  17. public partial struct double3 : System.IEquatable<double3>, IFormattable
  18. {
  19. public double x;
  20. public double y;
  21. public double z;
  22. /// <summary>double3 zero value.</summary>
  23. public static readonly double3 zero;
  24. /// <summary>Constructs a double3 vector from three double values.</summary>
  25. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  26. public double3(double x, double y, double z)
  27. {
  28. this.x = x;
  29. this.y = y;
  30. this.z = z;
  31. }
  32. /// <summary>Constructs a double3 vector from a double value and a double2 vector.</summary>
  33. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  34. public double3(double x, double2 yz)
  35. {
  36. this.x = x;
  37. this.y = yz.x;
  38. this.z = yz.y;
  39. }
  40. /// <summary>Constructs a double3 vector from a double2 vector and a double value.</summary>
  41. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  42. public double3(double2 xy, double z)
  43. {
  44. this.x = xy.x;
  45. this.y = xy.y;
  46. this.z = z;
  47. }
  48. /// <summary>Constructs a double3 vector from a double3 vector.</summary>
  49. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  50. public double3(double3 xyz)
  51. {
  52. this.x = xyz.x;
  53. this.y = xyz.y;
  54. this.z = xyz.z;
  55. }
  56. /// <summary>Constructs a double3 vector from a single double value by assigning it to every component.</summary>
  57. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  58. public double3(double v)
  59. {
  60. this.x = v;
  61. this.y = v;
  62. this.z = v;
  63. }
  64. /// <summary>Constructs a double3 vector from a single bool value by converting it to double and assigning it to every component.</summary>
  65. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  66. public double3(bool v)
  67. {
  68. this.x = v ? 1.0 : 0.0;
  69. this.y = v ? 1.0 : 0.0;
  70. this.z = v ? 1.0 : 0.0;
  71. }
  72. /// <summary>Constructs a double3 vector from a bool3 vector by componentwise conversion.</summary>
  73. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  74. public double3(bool3 v)
  75. {
  76. this.x = v.x ? 1.0 : 0.0;
  77. this.y = v.y ? 1.0 : 0.0;
  78. this.z = v.z ? 1.0 : 0.0;
  79. }
  80. /// <summary>Constructs a double3 vector from a single int value by converting it to double and assigning it to every component.</summary>
  81. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  82. public double3(int v)
  83. {
  84. this.x = v;
  85. this.y = v;
  86. this.z = v;
  87. }
  88. /// <summary>Constructs a double3 vector from a int3 vector by componentwise conversion.</summary>
  89. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  90. public double3(int3 v)
  91. {
  92. this.x = v.x;
  93. this.y = v.y;
  94. this.z = v.z;
  95. }
  96. /// <summary>Constructs a double3 vector from a single uint value by converting it to double and assigning it to every component.</summary>
  97. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  98. public double3(uint v)
  99. {
  100. this.x = v;
  101. this.y = v;
  102. this.z = v;
  103. }
  104. /// <summary>Constructs a double3 vector from a uint3 vector by componentwise conversion.</summary>
  105. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  106. public double3(uint3 v)
  107. {
  108. this.x = v.x;
  109. this.y = v.y;
  110. this.z = v.z;
  111. }
  112. /// <summary>Constructs a double3 vector from a single half value by converting it to double and assigning it to every component.</summary>
  113. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  114. public double3(half v)
  115. {
  116. this.x = v;
  117. this.y = v;
  118. this.z = v;
  119. }
  120. /// <summary>Constructs a double3 vector from a half3 vector by componentwise conversion.</summary>
  121. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  122. public double3(half3 v)
  123. {
  124. this.x = v.x;
  125. this.y = v.y;
  126. this.z = v.z;
  127. }
  128. /// <summary>Constructs a double3 vector from a single float value by converting it to double and assigning it to every component.</summary>
  129. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  130. public double3(float v)
  131. {
  132. this.x = v;
  133. this.y = v;
  134. this.z = v;
  135. }
  136. /// <summary>Constructs a double3 vector from a float3 vector by componentwise conversion.</summary>
  137. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  138. public double3(float3 v)
  139. {
  140. this.x = v.x;
  141. this.y = v.y;
  142. this.z = v.z;
  143. }
  144. /// <summary>Implicitly converts a single double value to a double3 vector by assigning it to every component.</summary>
  145. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  146. public static implicit operator double3(double v) { return new double3(v); }
  147. /// <summary>Explicitly converts a single bool value to a double3 vector by converting it to double and assigning it to every component.</summary>
  148. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  149. public static explicit operator double3(bool v) { return new double3(v); }
  150. /// <summary>Explicitly converts a bool3 vector to a double3 vector by componentwise conversion.</summary>
  151. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  152. public static explicit operator double3(bool3 v) { return new double3(v); }
  153. /// <summary>Implicitly converts a single int value to a double3 vector by converting it to double and assigning it to every component.</summary>
  154. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  155. public static implicit operator double3(int v) { return new double3(v); }
  156. /// <summary>Implicitly converts a int3 vector to a double3 vector by componentwise conversion.</summary>
  157. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  158. public static implicit operator double3(int3 v) { return new double3(v); }
  159. /// <summary>Implicitly converts a single uint value to a double3 vector by converting it to double and assigning it to every component.</summary>
  160. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  161. public static implicit operator double3(uint v) { return new double3(v); }
  162. /// <summary>Implicitly converts a uint3 vector to a double3 vector by componentwise conversion.</summary>
  163. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  164. public static implicit operator double3(uint3 v) { return new double3(v); }
  165. /// <summary>Implicitly converts a single half value to a double3 vector by converting it to double and assigning it to every component.</summary>
  166. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  167. public static implicit operator double3(half v) { return new double3(v); }
  168. /// <summary>Implicitly converts a half3 vector to a double3 vector by componentwise conversion.</summary>
  169. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  170. public static implicit operator double3(half3 v) { return new double3(v); }
  171. /// <summary>Implicitly converts a single float value to a double3 vector by converting it to double and assigning it to every component.</summary>
  172. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  173. public static implicit operator double3(float v) { return new double3(v); }
  174. /// <summary>Implicitly converts a float3 vector to a double3 vector by componentwise conversion.</summary>
  175. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  176. public static implicit operator double3(float3 v) { return new double3(v); }
  177. /// <summary>Returns the result of a componentwise multiplication operation on two double3 vectors.</summary>
  178. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  179. public static double3 operator * (double3 lhs, double3 rhs) { return new double3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); }
  180. /// <summary>Returns the result of a componentwise multiplication operation on a double3 vector and a double value.</summary>
  181. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  182. public static double3 operator * (double3 lhs, double rhs) { return new double3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); }
  183. /// <summary>Returns the result of a componentwise multiplication operation on a double value and a double3 vector.</summary>
  184. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  185. public static double3 operator * (double lhs, double3 rhs) { return new double3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); }
  186. /// <summary>Returns the result of a componentwise addition operation on two double3 vectors.</summary>
  187. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  188. public static double3 operator + (double3 lhs, double3 rhs) { return new double3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); }
  189. /// <summary>Returns the result of a componentwise addition operation on a double3 vector and a double value.</summary>
  190. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  191. public static double3 operator + (double3 lhs, double rhs) { return new double3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); }
  192. /// <summary>Returns the result of a componentwise addition operation on a double value and a double3 vector.</summary>
  193. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  194. public static double3 operator + (double lhs, double3 rhs) { return new double3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); }
  195. /// <summary>Returns the result of a componentwise subtraction operation on two double3 vectors.</summary>
  196. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  197. public static double3 operator - (double3 lhs, double3 rhs) { return new double3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); }
  198. /// <summary>Returns the result of a componentwise subtraction operation on a double3 vector and a double value.</summary>
  199. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  200. public static double3 operator - (double3 lhs, double rhs) { return new double3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); }
  201. /// <summary>Returns the result of a componentwise subtraction operation on a double value and a double3 vector.</summary>
  202. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  203. public static double3 operator - (double lhs, double3 rhs) { return new double3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); }
  204. /// <summary>Returns the result of a componentwise division operation on two double3 vectors.</summary>
  205. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  206. public static double3 operator / (double3 lhs, double3 rhs) { return new double3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); }
  207. /// <summary>Returns the result of a componentwise division operation on a double3 vector and a double value.</summary>
  208. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  209. public static double3 operator / (double3 lhs, double rhs) { return new double3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); }
  210. /// <summary>Returns the result of a componentwise division operation on a double value and a double3 vector.</summary>
  211. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  212. public static double3 operator / (double lhs, double3 rhs) { return new double3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); }
  213. /// <summary>Returns the result of a componentwise modulus operation on two double3 vectors.</summary>
  214. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  215. public static double3 operator % (double3 lhs, double3 rhs) { return new double3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); }
  216. /// <summary>Returns the result of a componentwise modulus operation on a double3 vector and a double value.</summary>
  217. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  218. public static double3 operator % (double3 lhs, double rhs) { return new double3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); }
  219. /// <summary>Returns the result of a componentwise modulus operation on a double value and a double3 vector.</summary>
  220. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  221. public static double3 operator % (double lhs, double3 rhs) { return new double3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); }
  222. /// <summary>Returns the result of a componentwise increment operation on a double3 vector.</summary>
  223. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  224. public static double3 operator ++ (double3 val) { return new double3 (++val.x, ++val.y, ++val.z); }
  225. /// <summary>Returns the result of a componentwise decrement operation on a double3 vector.</summary>
  226. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  227. public static double3 operator -- (double3 val) { return new double3 (--val.x, --val.y, --val.z); }
  228. /// <summary>Returns the result of a componentwise less than operation on two double3 vectors.</summary>
  229. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  230. public static bool3 operator < (double3 lhs, double3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); }
  231. /// <summary>Returns the result of a componentwise less than operation on a double3 vector and a double value.</summary>
  232. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  233. public static bool3 operator < (double3 lhs, double rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); }
  234. /// <summary>Returns the result of a componentwise less than operation on a double value and a double3 vector.</summary>
  235. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  236. public static bool3 operator < (double lhs, double3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); }
  237. /// <summary>Returns the result of a componentwise less or equal operation on two double3 vectors.</summary>
  238. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  239. public static bool3 operator <= (double3 lhs, double3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); }
  240. /// <summary>Returns the result of a componentwise less or equal operation on a double3 vector and a double value.</summary>
  241. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  242. public static bool3 operator <= (double3 lhs, double rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); }
  243. /// <summary>Returns the result of a componentwise less or equal operation on a double value and a double3 vector.</summary>
  244. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  245. public static bool3 operator <= (double lhs, double3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); }
  246. /// <summary>Returns the result of a componentwise greater than operation on two double3 vectors.</summary>
  247. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  248. public static bool3 operator > (double3 lhs, double3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); }
  249. /// <summary>Returns the result of a componentwise greater than operation on a double3 vector and a double value.</summary>
  250. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  251. public static bool3 operator > (double3 lhs, double rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); }
  252. /// <summary>Returns the result of a componentwise greater than operation on a double value and a double3 vector.</summary>
  253. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  254. public static bool3 operator > (double lhs, double3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); }
  255. /// <summary>Returns the result of a componentwise greater or equal operation on two double3 vectors.</summary>
  256. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  257. public static bool3 operator >= (double3 lhs, double3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); }
  258. /// <summary>Returns the result of a componentwise greater or equal operation on a double3 vector and a double value.</summary>
  259. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  260. public static bool3 operator >= (double3 lhs, double rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); }
  261. /// <summary>Returns the result of a componentwise greater or equal operation on a double value and a double3 vector.</summary>
  262. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  263. public static bool3 operator >= (double lhs, double3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); }
  264. /// <summary>Returns the result of a componentwise unary minus operation on a double3 vector.</summary>
  265. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  266. public static double3 operator - (double3 val) { return new double3 (-val.x, -val.y, -val.z); }
  267. /// <summary>Returns the result of a componentwise unary plus operation on a double3 vector.</summary>
  268. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  269. public static double3 operator + (double3 val) { return new double3 (+val.x, +val.y, +val.z); }
  270. /// <summary>Returns the result of a componentwise equality operation on two double3 vectors.</summary>
  271. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  272. public static bool3 operator == (double3 lhs, double3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); }
  273. /// <summary>Returns the result of a componentwise equality operation on a double3 vector and a double value.</summary>
  274. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  275. public static bool3 operator == (double3 lhs, double rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); }
  276. /// <summary>Returns the result of a componentwise equality operation on a double value and a double3 vector.</summary>
  277. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  278. public static bool3 operator == (double lhs, double3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); }
  279. /// <summary>Returns the result of a componentwise not equal operation on two double3 vectors.</summary>
  280. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  281. public static bool3 operator != (double3 lhs, double3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); }
  282. /// <summary>Returns the result of a componentwise not equal operation on a double3 vector and a double value.</summary>
  283. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  284. public static bool3 operator != (double3 lhs, double rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); }
  285. /// <summary>Returns the result of a componentwise not equal operation on a double value and a double3 vector.</summary>
  286. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  287. public static bool3 operator != (double lhs, double3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); }
  288. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  289. public double4 xxxx
  290. {
  291. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  292. get { return new double4(x, x, x, x); }
  293. }
  294. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  295. public double4 xxxy
  296. {
  297. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  298. get { return new double4(x, x, x, y); }
  299. }
  300. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  301. public double4 xxxz
  302. {
  303. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  304. get { return new double4(x, x, x, z); }
  305. }
  306. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  307. public double4 xxyx
  308. {
  309. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  310. get { return new double4(x, x, y, x); }
  311. }
  312. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  313. public double4 xxyy
  314. {
  315. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  316. get { return new double4(x, x, y, y); }
  317. }
  318. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  319. public double4 xxyz
  320. {
  321. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  322. get { return new double4(x, x, y, z); }
  323. }
  324. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  325. public double4 xxzx
  326. {
  327. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  328. get { return new double4(x, x, z, x); }
  329. }
  330. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  331. public double4 xxzy
  332. {
  333. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  334. get { return new double4(x, x, z, y); }
  335. }
  336. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  337. public double4 xxzz
  338. {
  339. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  340. get { return new double4(x, x, z, z); }
  341. }
  342. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  343. public double4 xyxx
  344. {
  345. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  346. get { return new double4(x, y, x, x); }
  347. }
  348. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  349. public double4 xyxy
  350. {
  351. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  352. get { return new double4(x, y, x, y); }
  353. }
  354. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  355. public double4 xyxz
  356. {
  357. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  358. get { return new double4(x, y, x, z); }
  359. }
  360. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  361. public double4 xyyx
  362. {
  363. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  364. get { return new double4(x, y, y, x); }
  365. }
  366. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  367. public double4 xyyy
  368. {
  369. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  370. get { return new double4(x, y, y, y); }
  371. }
  372. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  373. public double4 xyyz
  374. {
  375. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  376. get { return new double4(x, y, y, z); }
  377. }
  378. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  379. public double4 xyzx
  380. {
  381. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  382. get { return new double4(x, y, z, x); }
  383. }
  384. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  385. public double4 xyzy
  386. {
  387. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  388. get { return new double4(x, y, z, y); }
  389. }
  390. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  391. public double4 xyzz
  392. {
  393. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  394. get { return new double4(x, y, z, z); }
  395. }
  396. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  397. public double4 xzxx
  398. {
  399. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  400. get { return new double4(x, z, x, x); }
  401. }
  402. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  403. public double4 xzxy
  404. {
  405. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  406. get { return new double4(x, z, x, y); }
  407. }
  408. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  409. public double4 xzxz
  410. {
  411. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  412. get { return new double4(x, z, x, z); }
  413. }
  414. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  415. public double4 xzyx
  416. {
  417. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  418. get { return new double4(x, z, y, x); }
  419. }
  420. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  421. public double4 xzyy
  422. {
  423. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  424. get { return new double4(x, z, y, y); }
  425. }
  426. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  427. public double4 xzyz
  428. {
  429. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  430. get { return new double4(x, z, y, z); }
  431. }
  432. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  433. public double4 xzzx
  434. {
  435. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  436. get { return new double4(x, z, z, x); }
  437. }
  438. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  439. public double4 xzzy
  440. {
  441. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  442. get { return new double4(x, z, z, y); }
  443. }
  444. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  445. public double4 xzzz
  446. {
  447. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  448. get { return new double4(x, z, z, z); }
  449. }
  450. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  451. public double4 yxxx
  452. {
  453. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  454. get { return new double4(y, x, x, x); }
  455. }
  456. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  457. public double4 yxxy
  458. {
  459. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  460. get { return new double4(y, x, x, y); }
  461. }
  462. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  463. public double4 yxxz
  464. {
  465. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  466. get { return new double4(y, x, x, z); }
  467. }
  468. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  469. public double4 yxyx
  470. {
  471. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  472. get { return new double4(y, x, y, x); }
  473. }
  474. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  475. public double4 yxyy
  476. {
  477. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  478. get { return new double4(y, x, y, y); }
  479. }
  480. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  481. public double4 yxyz
  482. {
  483. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  484. get { return new double4(y, x, y, z); }
  485. }
  486. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  487. public double4 yxzx
  488. {
  489. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  490. get { return new double4(y, x, z, x); }
  491. }
  492. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  493. public double4 yxzy
  494. {
  495. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  496. get { return new double4(y, x, z, y); }
  497. }
  498. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  499. public double4 yxzz
  500. {
  501. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  502. get { return new double4(y, x, z, z); }
  503. }
  504. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  505. public double4 yyxx
  506. {
  507. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  508. get { return new double4(y, y, x, x); }
  509. }
  510. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  511. public double4 yyxy
  512. {
  513. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  514. get { return new double4(y, y, x, y); }
  515. }
  516. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  517. public double4 yyxz
  518. {
  519. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  520. get { return new double4(y, y, x, z); }
  521. }
  522. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  523. public double4 yyyx
  524. {
  525. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  526. get { return new double4(y, y, y, x); }
  527. }
  528. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  529. public double4 yyyy
  530. {
  531. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  532. get { return new double4(y, y, y, y); }
  533. }
  534. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  535. public double4 yyyz
  536. {
  537. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  538. get { return new double4(y, y, y, z); }
  539. }
  540. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  541. public double4 yyzx
  542. {
  543. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  544. get { return new double4(y, y, z, x); }
  545. }
  546. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  547. public double4 yyzy
  548. {
  549. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  550. get { return new double4(y, y, z, y); }
  551. }
  552. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  553. public double4 yyzz
  554. {
  555. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  556. get { return new double4(y, y, z, z); }
  557. }
  558. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  559. public double4 yzxx
  560. {
  561. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  562. get { return new double4(y, z, x, x); }
  563. }
  564. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  565. public double4 yzxy
  566. {
  567. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  568. get { return new double4(y, z, x, y); }
  569. }
  570. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  571. public double4 yzxz
  572. {
  573. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  574. get { return new double4(y, z, x, z); }
  575. }
  576. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  577. public double4 yzyx
  578. {
  579. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  580. get { return new double4(y, z, y, x); }
  581. }
  582. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  583. public double4 yzyy
  584. {
  585. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  586. get { return new double4(y, z, y, y); }
  587. }
  588. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  589. public double4 yzyz
  590. {
  591. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  592. get { return new double4(y, z, y, z); }
  593. }
  594. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  595. public double4 yzzx
  596. {
  597. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  598. get { return new double4(y, z, z, x); }
  599. }
  600. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  601. public double4 yzzy
  602. {
  603. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  604. get { return new double4(y, z, z, y); }
  605. }
  606. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  607. public double4 yzzz
  608. {
  609. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  610. get { return new double4(y, z, z, z); }
  611. }
  612. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  613. public double4 zxxx
  614. {
  615. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  616. get { return new double4(z, x, x, x); }
  617. }
  618. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  619. public double4 zxxy
  620. {
  621. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  622. get { return new double4(z, x, x, y); }
  623. }
  624. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  625. public double4 zxxz
  626. {
  627. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  628. get { return new double4(z, x, x, z); }
  629. }
  630. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  631. public double4 zxyx
  632. {
  633. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  634. get { return new double4(z, x, y, x); }
  635. }
  636. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  637. public double4 zxyy
  638. {
  639. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  640. get { return new double4(z, x, y, y); }
  641. }
  642. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  643. public double4 zxyz
  644. {
  645. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  646. get { return new double4(z, x, y, z); }
  647. }
  648. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  649. public double4 zxzx
  650. {
  651. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  652. get { return new double4(z, x, z, x); }
  653. }
  654. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  655. public double4 zxzy
  656. {
  657. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  658. get { return new double4(z, x, z, y); }
  659. }
  660. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  661. public double4 zxzz
  662. {
  663. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  664. get { return new double4(z, x, z, z); }
  665. }
  666. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  667. public double4 zyxx
  668. {
  669. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  670. get { return new double4(z, y, x, x); }
  671. }
  672. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  673. public double4 zyxy
  674. {
  675. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  676. get { return new double4(z, y, x, y); }
  677. }
  678. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  679. public double4 zyxz
  680. {
  681. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  682. get { return new double4(z, y, x, z); }
  683. }
  684. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  685. public double4 zyyx
  686. {
  687. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  688. get { return new double4(z, y, y, x); }
  689. }
  690. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  691. public double4 zyyy
  692. {
  693. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  694. get { return new double4(z, y, y, y); }
  695. }
  696. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  697. public double4 zyyz
  698. {
  699. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  700. get { return new double4(z, y, y, z); }
  701. }
  702. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  703. public double4 zyzx
  704. {
  705. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  706. get { return new double4(z, y, z, x); }
  707. }
  708. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  709. public double4 zyzy
  710. {
  711. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  712. get { return new double4(z, y, z, y); }
  713. }
  714. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  715. public double4 zyzz
  716. {
  717. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  718. get { return new double4(z, y, z, z); }
  719. }
  720. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  721. public double4 zzxx
  722. {
  723. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  724. get { return new double4(z, z, x, x); }
  725. }
  726. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  727. public double4 zzxy
  728. {
  729. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  730. get { return new double4(z, z, x, y); }
  731. }
  732. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  733. public double4 zzxz
  734. {
  735. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  736. get { return new double4(z, z, x, z); }
  737. }
  738. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  739. public double4 zzyx
  740. {
  741. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  742. get { return new double4(z, z, y, x); }
  743. }
  744. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  745. public double4 zzyy
  746. {
  747. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  748. get { return new double4(z, z, y, y); }
  749. }
  750. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  751. public double4 zzyz
  752. {
  753. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  754. get { return new double4(z, z, y, z); }
  755. }
  756. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  757. public double4 zzzx
  758. {
  759. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  760. get { return new double4(z, z, z, x); }
  761. }
  762. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  763. public double4 zzzy
  764. {
  765. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  766. get { return new double4(z, z, z, y); }
  767. }
  768. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  769. public double4 zzzz
  770. {
  771. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  772. get { return new double4(z, z, z, z); }
  773. }
  774. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  775. public double3 xxx
  776. {
  777. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  778. get { return new double3(x, x, x); }
  779. }
  780. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  781. public double3 xxy
  782. {
  783. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  784. get { return new double3(x, x, y); }
  785. }
  786. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  787. public double3 xxz
  788. {
  789. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  790. get { return new double3(x, x, z); }
  791. }
  792. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  793. public double3 xyx
  794. {
  795. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  796. get { return new double3(x, y, x); }
  797. }
  798. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  799. public double3 xyy
  800. {
  801. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  802. get { return new double3(x, y, y); }
  803. }
  804. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  805. public double3 xyz
  806. {
  807. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  808. get { return new double3(x, y, z); }
  809. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  810. set { x = value.x; y = value.y; z = value.z; }
  811. }
  812. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  813. public double3 xzx
  814. {
  815. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  816. get { return new double3(x, z, x); }
  817. }
  818. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  819. public double3 xzy
  820. {
  821. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  822. get { return new double3(x, z, y); }
  823. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  824. set { x = value.x; z = value.y; y = value.z; }
  825. }
  826. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  827. public double3 xzz
  828. {
  829. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  830. get { return new double3(x, z, z); }
  831. }
  832. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  833. public double3 yxx
  834. {
  835. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  836. get { return new double3(y, x, x); }
  837. }
  838. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  839. public double3 yxy
  840. {
  841. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  842. get { return new double3(y, x, y); }
  843. }
  844. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  845. public double3 yxz
  846. {
  847. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  848. get { return new double3(y, x, z); }
  849. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  850. set { y = value.x; x = value.y; z = value.z; }
  851. }
  852. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  853. public double3 yyx
  854. {
  855. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  856. get { return new double3(y, y, x); }
  857. }
  858. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  859. public double3 yyy
  860. {
  861. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  862. get { return new double3(y, y, y); }
  863. }
  864. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  865. public double3 yyz
  866. {
  867. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  868. get { return new double3(y, y, z); }
  869. }
  870. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  871. public double3 yzx
  872. {
  873. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  874. get { return new double3(y, z, x); }
  875. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  876. set { y = value.x; z = value.y; x = value.z; }
  877. }
  878. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  879. public double3 yzy
  880. {
  881. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  882. get { return new double3(y, z, y); }
  883. }
  884. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  885. public double3 yzz
  886. {
  887. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  888. get { return new double3(y, z, z); }
  889. }
  890. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  891. public double3 zxx
  892. {
  893. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  894. get { return new double3(z, x, x); }
  895. }
  896. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  897. public double3 zxy
  898. {
  899. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  900. get { return new double3(z, x, y); }
  901. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  902. set { z = value.x; x = value.y; y = value.z; }
  903. }
  904. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  905. public double3 zxz
  906. {
  907. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  908. get { return new double3(z, x, z); }
  909. }
  910. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  911. public double3 zyx
  912. {
  913. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  914. get { return new double3(z, y, x); }
  915. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  916. set { z = value.x; y = value.y; x = value.z; }
  917. }
  918. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  919. public double3 zyy
  920. {
  921. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  922. get { return new double3(z, y, y); }
  923. }
  924. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  925. public double3 zyz
  926. {
  927. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  928. get { return new double3(z, y, z); }
  929. }
  930. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  931. public double3 zzx
  932. {
  933. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  934. get { return new double3(z, z, x); }
  935. }
  936. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  937. public double3 zzy
  938. {
  939. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  940. get { return new double3(z, z, y); }
  941. }
  942. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  943. public double3 zzz
  944. {
  945. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  946. get { return new double3(z, z, z); }
  947. }
  948. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  949. public double2 xx
  950. {
  951. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  952. get { return new double2(x, x); }
  953. }
  954. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  955. public double2 xy
  956. {
  957. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  958. get { return new double2(x, y); }
  959. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  960. set { x = value.x; y = value.y; }
  961. }
  962. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  963. public double2 xz
  964. {
  965. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  966. get { return new double2(x, z); }
  967. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  968. set { x = value.x; z = value.y; }
  969. }
  970. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  971. public double2 yx
  972. {
  973. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  974. get { return new double2(y, x); }
  975. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  976. set { y = value.x; x = value.y; }
  977. }
  978. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  979. public double2 yy
  980. {
  981. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  982. get { return new double2(y, y); }
  983. }
  984. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  985. public double2 yz
  986. {
  987. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  988. get { return new double2(y, z); }
  989. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  990. set { y = value.x; z = value.y; }
  991. }
  992. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  993. public double2 zx
  994. {
  995. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  996. get { return new double2(z, x); }
  997. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  998. set { z = value.x; x = value.y; }
  999. }
  1000. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1001. public double2 zy
  1002. {
  1003. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1004. get { return new double2(z, y); }
  1005. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1006. set { z = value.x; y = value.y; }
  1007. }
  1008. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
  1009. public double2 zz
  1010. {
  1011. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1012. get { return new double2(z, z); }
  1013. }
  1014. /// <summary>Returns the double element at a specified index.</summary>
  1015. unsafe public double this[int index]
  1016. {
  1017. get
  1018. {
  1019. #if ENABLE_UNITY_COLLECTIONS_CHECKS
  1020. if ((uint)index >= 3)
  1021. throw new System.ArgumentException("index must be between[0...2]");
  1022. #endif
  1023. fixed (double3* array = &this) { return ((double*)array)[index]; }
  1024. }
  1025. set
  1026. {
  1027. #if ENABLE_UNITY_COLLECTIONS_CHECKS
  1028. if ((uint)index >= 3)
  1029. throw new System.ArgumentException("index must be between[0...2]");
  1030. #endif
  1031. fixed (double* array = &x) { array[index] = value; }
  1032. }
  1033. }
  1034. /// <summary>Returns true if the double3 is equal to a given double3, false otherwise.</summary>
  1035. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1036. public bool Equals(double3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; }
  1037. /// <summary>Returns true if the double3 is equal to a given double3, false otherwise.</summary>
  1038. public override bool Equals(object o) { return Equals((double3)o); }
  1039. /// <summary>Returns a hash code for the double3.</summary>
  1040. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1041. public override int GetHashCode() { return (int)math.hash(this); }
  1042. /// <summary>Returns a string representation of the double3.</summary>
  1043. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1044. public override string ToString()
  1045. {
  1046. return string.Format("double3({0}, {1}, {2})", x, y, z);
  1047. }
  1048. /// <summary>Returns a string representation of the double3 using a specified format and culture-specific format information.</summary>
  1049. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1050. public string ToString(string format, IFormatProvider formatProvider)
  1051. {
  1052. return string.Format("double3({0}, {1}, {2})", x.ToString(format, formatProvider), y.ToString(format, formatProvider), z.ToString(format, formatProvider));
  1053. }
  1054. internal sealed class DebuggerProxy
  1055. {
  1056. public double x;
  1057. public double y;
  1058. public double z;
  1059. public DebuggerProxy(double3 v)
  1060. {
  1061. x = v.x;
  1062. y = v.y;
  1063. z = v.z;
  1064. }
  1065. }
  1066. }
  1067. public static partial class math
  1068. {
  1069. /// <summary>Returns a double3 vector constructed from three double values.</summary>
  1070. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1071. public static double3 double3(double x, double y, double z) { return new double3(x, y, z); }
  1072. /// <summary>Returns a double3 vector constructed from a double value and a double2 vector.</summary>
  1073. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1074. public static double3 double3(double x, double2 yz) { return new double3(x, yz); }
  1075. /// <summary>Returns a double3 vector constructed from a double2 vector and a double value.</summary>
  1076. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1077. public static double3 double3(double2 xy, double z) { return new double3(xy, z); }
  1078. /// <summary>Returns a double3 vector constructed from a double3 vector.</summary>
  1079. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1080. public static double3 double3(double3 xyz) { return new double3(xyz); }
  1081. /// <summary>Returns a double3 vector constructed from a single double value by assigning it to every component.</summary>
  1082. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1083. public static double3 double3(double v) { return new double3(v); }
  1084. /// <summary>Returns a double3 vector constructed from a single bool value by converting it to double and assigning it to every component.</summary>
  1085. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1086. public static double3 double3(bool v) { return new double3(v); }
  1087. /// <summary>Return a double3 vector constructed from a bool3 vector by componentwise conversion.</summary>
  1088. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1089. public static double3 double3(bool3 v) { return new double3(v); }
  1090. /// <summary>Returns a double3 vector constructed from a single int value by converting it to double and assigning it to every component.</summary>
  1091. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1092. public static double3 double3(int v) { return new double3(v); }
  1093. /// <summary>Return a double3 vector constructed from a int3 vector by componentwise conversion.</summary>
  1094. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1095. public static double3 double3(int3 v) { return new double3(v); }
  1096. /// <summary>Returns a double3 vector constructed from a single uint value by converting it to double and assigning it to every component.</summary>
  1097. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1098. public static double3 double3(uint v) { return new double3(v); }
  1099. /// <summary>Return a double3 vector constructed from a uint3 vector by componentwise conversion.</summary>
  1100. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1101. public static double3 double3(uint3 v) { return new double3(v); }
  1102. /// <summary>Returns a double3 vector constructed from a single half value by converting it to double and assigning it to every component.</summary>
  1103. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1104. public static double3 double3(half v) { return new double3(v); }
  1105. /// <summary>Return a double3 vector constructed from a half3 vector by componentwise conversion.</summary>
  1106. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1107. public static double3 double3(half3 v) { return new double3(v); }
  1108. /// <summary>Returns a double3 vector constructed from a single float value by converting it to double and assigning it to every component.</summary>
  1109. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1110. public static double3 double3(float v) { return new double3(v); }
  1111. /// <summary>Return a double3 vector constructed from a float3 vector by componentwise conversion.</summary>
  1112. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1113. public static double3 double3(float3 v) { return new double3(v); }
  1114. /// <summary>Returns a uint hash code of a double3 vector.</summary>
  1115. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1116. public static uint hash(double3 v)
  1117. {
  1118. return csum(fold_to_uint(v) * uint3(0xAF0F3103u, 0xE4A056C7u, 0x841D8225u)) + 0xC9393C7Du;
  1119. }
  1120. /// <summary>
  1121. /// Returns a uint3 vector hash code of a double3 vector.
  1122. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash
  1123. /// that are only reduced to a narrow uint hash at the very end instead of at every step.
  1124. /// </summary>
  1125. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1126. public static uint3 hashwide(double3 v)
  1127. {
  1128. return (fold_to_uint(v) * uint3(0xD42EAFA3u, 0xD9AFD06Du, 0x97A65421u)) + 0x7809205Fu;
  1129. }
  1130. /// <summary>Returns the result of specified shuffling of the components from two double3 vectors into a double value.</summary>
  1131. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1132. public static double shuffle(double3 a, double3 b, ShuffleComponent x)
  1133. {
  1134. return select_shuffle_component(a, b, x);
  1135. }
  1136. /// <summary>Returns the result of specified shuffling of the components from two double3 vectors into a double2 vector.</summary>
  1137. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1138. public static double2 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y)
  1139. {
  1140. return double2(
  1141. select_shuffle_component(a, b, x),
  1142. select_shuffle_component(a, b, y));
  1143. }
  1144. /// <summary>Returns the result of specified shuffling of the components from two double3 vectors into a double3 vector.</summary>
  1145. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1146. public static double3 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z)
  1147. {
  1148. return double3(
  1149. select_shuffle_component(a, b, x),
  1150. select_shuffle_component(a, b, y),
  1151. select_shuffle_component(a, b, z));
  1152. }
  1153. /// <summary>Returns the result of specified shuffling of the components from two double3 vectors into a double4 vector.</summary>
  1154. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1155. public static double4 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w)
  1156. {
  1157. return double4(
  1158. select_shuffle_component(a, b, x),
  1159. select_shuffle_component(a, b, y),
  1160. select_shuffle_component(a, b, z),
  1161. select_shuffle_component(a, b, w));
  1162. }
  1163. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  1164. internal static double select_shuffle_component(double3 a, double3 b, ShuffleComponent component)
  1165. {
  1166. switch(component)
  1167. {
  1168. case ShuffleComponent.LeftX:
  1169. return a.x;
  1170. case ShuffleComponent.LeftY:
  1171. return a.y;
  1172. case ShuffleComponent.LeftZ:
  1173. return a.z;
  1174. case ShuffleComponent.RightX:
  1175. return b.x;
  1176. case ShuffleComponent.RightY:
  1177. return b.y;
  1178. case ShuffleComponent.RightZ:
  1179. return b.z;
  1180. default:
  1181. throw new System.ArgumentException("Invalid shuffle component: " + component);
  1182. }
  1183. }
  1184. }
  1185. }