7.6. Module com.io7m.parasol.Sampler2D | 7. Standard Library Reference | 7.8. Module com.io7m.parasol.Vector2i |
Previous | Up | Next |
Module com.io7m.parasol.Vector2f
add
Return the component-wise addition v0 + v1.
add_scalar
Return the addition (v[x] + s, v[y] + s).
divide
Return the component-wise division v0 / v1.
divide_scalar
Return the division (v[x] / s, v[y] / s).
dot
Return the dot product v0 ⋅ v1.
interpolate
Return the linear interpolation (v1 ✕ t) + (v0 ✕ (1 - t)).
magnitude
Return the magnitude of v.
multiply
Return the component-wise multiplication v0 ✕ v1.
multiply_scalar
Return the multiplication (v[x] ✕ s, v[y] ✕ s).
negate
Return the component-wise negation -v.
normalize
Return a vector pointing in the same direction as v
but with a magnitude of 1.
reflect
Return the reflection of the incident vector
i with respect to the vector n,
as given by i - 2.0 ✕ dot(n, i) ✕ n.
refract
Return the refraction vector of the incident vector
i with respect to the vector n,
with the given ratio of indices of refraction e.
subtract
Return the component-wise subtraction v0 - v1.
Previous | Up | Next |
7.6. Module com.io7m.parasol.Sampler2D | 7. Standard Library Reference | 7.8. Module com.io7m.parasol.Vector2i |