<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="_c74_vig.xsl" type="text/xsl"?>
<vignette name="Jitter Operators" order="5" package="Gen" rankfactor="3">
  <h1>
	Jitter Operators
</h1>
  <p>
			The following Gen operators are unique to the
			<o>jit.gen</o>
			,
			<o>jit.pix</o>
			, and
			<o>jit.gl.pix</o>
			objects - unlike the
			Common Gen Operators
			, they are only used in the matrix/texture domain.
		</p>
  <!--Begin Gen Operators-->
  <h2>
	Color
 </h2>
  <ul>
    <li><link name="gen_jit_hsl2rgb" type="genrefpage">hsl2rgb</link> :
<span name="jit_hsl2rgb">Convert HSL to RGB, preserving alpha</span>
</li>
    <li><link name="gen_jit_rgb2hsl" type="genrefpage">rgb2hsl</link> :
<span name="jit_rgb2hsl">Convert RGB to HSL, preserving alpha</span>
</li>
  </ul>
  <h2>
	Coordinate
 </h2>
  <ul>
    <li><link name="gen_jit_cell" type="genrefpage">cell</link> :
<span name="jit_cell">Cell coordinates of input matrix [0, dim-1]</span>
</li>
    <li><link name="gen_jit_dim" type="genrefpage">dim</link> :
<span name="jit_dim">Dimensions of input matrix</span>
</li>
    <li><link name="gen_jit_norm" type="genrefpage">norm</link> :
<span name="jit_norm">Normalized coordinates of input matrix [0, 1]</span>
</li>
    <li><link name="gen_jit_snorm" type="genrefpage">snorm</link> :
<span name="jit_snorm">Signed normalized coordinates of input matrix [-1, 1]</span>
</li>
  </ul>
  <h2>
	Quaternion
 </h2>
  <ul>
    <li><link name="gen_jit_qconj" type="genrefpage">qconj</link> :
<span name="common_qconj">Get the conjugate of a quaternion.</span>
</li>
    <li><link name="gen_jit_qmul" type="genrefpage">qmul</link> :
<span name="common_qmul">Multiply quaternion inputs</span>
</li>
    <li><link name="gen_jit_qrot" type="genrefpage">qrot</link> :
<span name="common_qrot">Rotate a vector by a quaternion. The equation of the rotation is q*v*q^-1.</span>
</li>
  </ul>
  <h2>
	Sampling
 </h2>
  <ul>
    <li><link name="gen_jit_nearest" type="genrefpage">nearest</link> :
<span name="jit_nearest">Nearest neighbor sample a matrix at a given coordinate (normalized). Nearest has a boundmode attribute that can be set to wrap, mirror or clamp.</span>
</li>
    <li><link name="gen_jit_nearestpix" type="genrefpage">nearestpix</link> :
		<span name="jit_nearestpix">Nearest neighbor sample a matrix at a given coordinate (in pixels). Nearest has a boundmode attribute that can be set to wrap, mirror or clamp.</span>
	</li>
    <li><link name="gen_jit_sample" type="genrefpage">sample</link> :
<span name="jit_sample">Sample a matrix at a given coordinate (normalized) with linear interpolation. Sample has a boundmode attribute  that can be set to wrap, mirror or clamp.</span>
</li>
    <li><link name="gen_jit_samplepix" type="genrefpage">samplepix</link> :
		<span name="jit_samplepix">Sample a matrix at a given coordinate (in pixels) with linear interpolation. Pixel centers are located at PIXEL+0.5. For example, the center of the upper-left pixel is (0.5, 0.5).  Samplepix has a boundmode attribute  that can be set to wrap, mirror or clamp.</span>
	</li>
  </ul>
  <h2>
	Surface
 </h2>
  <ul>
    <li><link name="gen_jit_circle" type="genrefpage">circle</link> :
<span name="jit_circle">Equation of a circle taking input coordinates ranging from [0, 1]</span>
</li>
    <li><link name="gen_jit_cone" type="genrefpage">cone</link> :
<span name="jit_cone">Equation of a cone taking input coordinates ranging from [0, 1]</span>
</li>
    <li><link name="gen_jit_cylinder" type="genrefpage">cylinder</link> :
<span name="jit_cylinder">Equation of a cylinder taking input coordinates ranging from [0, 1]</span>
</li>
    <li><link name="gen_jit_plane" type="genrefpage">plane</link> :
<span name="jit_plane">Equation of a plane taking input coordinates ranging from [0, 1]</span>
</li>
    <li><link name="gen_jit_sphere" type="genrefpage">sphere</link> :
<span name="jit_sphere">Equation of a sphere taking input coordinates ranging from [0, 1]</span>
</li>
    <li><link name="gen_jit_torus" type="genrefpage">torus</link> :
<span name="jit_torus">Equation of a torus taking input coordinates ranging from [0, 1]</span>
</li>
  </ul>
  <h2>
	Vector
 </h2>
  <ul>
    <li><link name="gen_jit_concat" type="genrefpage">concat</link> :
<span name="jit_concat">Concatenate vector values into a larger vector</span>
</li>
    <li><link name="gen_jit_cross" type="genrefpage">cross</link> :
<span name="jit_cross">Take the cross product of two vectors</span>
</li>
    <li><link name="gen_jit_dot" type="genrefpage">dot</link> :
<span name="jit_dot">Take the dot product of two vectors</span>
</li>
    <li><link name="gen_jit_faceforward" type="genrefpage">faceforward</link> :
<span name="jit_faceforward">Return a vector pointing in the same direction as another</span>
</li>
    <li><link name="gen_jit_length" type="genrefpage">length</link> :
<span name="jit_length">Returns the length of a vector</span>
</li>
    <li><link name="gen_jit_normalize" type="genrefpage">normalize</link> :
<span name="jit_normalize">Normalize a vector to unit length</span>
</li>
    <li><link name="gen_jit_reflect" type="genrefpage">reflect</link> :
<span name="jit_reflect">Reflect a vector off a surface defined by a normal</span>
</li>
    <li><link name="gen_jit_refract" type="genrefpage">refract</link> :
<span name="jit_refract">Refract a vector through a surface defined by a normal and a refraction index</span>
</li>
    <li><link name="gen_jit_rotor" type="genrefpage">rotor</link> :
<span name="jit_rotor">Return a quaternion that can rotate the first input into the second.</span>
</li>
    <li><link name="gen_jit_swiz" type="genrefpage">swiz</link> :
<span name="jit_swiz">Unpack and remap vector components</span>
</li>
    <li><link name="gen_jit_vec" type="genrefpage">vec</link> :
<span name="jit_vec">Pack scalar values into a vector</span>
</li>
  </ul>
  <!--End Gen Operators-->
</vignette>
