Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

half3.gen.cs 55KB

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