Documentation ¶
Index ¶
- func Clamp(num, min, max float64) float64
- func Lerp(fac float64, v1, v2 r3.Vec) r3.Vec
- func RandomUnitVec3() r3.Vec
- func RandomV3InHemisphere(nor r3.Vec) r3.Vec
- func RandomVec3() r3.Vec
- func RandomVec3Between(min, max float64) r3.Vec
- func RandomVec3Disk() r3.Vec
- func RealRand() float64
- func RealRandRange(min, max float64) float64
- func Vec3Dot(v1, v2 r3.Vec) float64
- func Vec3Length(v r3.Vec) float64
- func Vec3LengthSquared(v r3.Vec) float64
- func Vec3Mul(v1, v2 r3.Vec) r3.Vec
- func VecToRGBA(vec r3.Vec) color.RGBA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lerp ¶
Lerp does a linear interpolation of two vectors using a provided factor. It is expected to operate on the factor range of [0.0, 1.0], but does not check for inclusion. May return unexpected results when the factor is out of the expected range
func RandomUnitVec3 ¶
func RandomVec3 ¶
func RandomVec3Between ¶
func RandomVec3Disk ¶
func RealRandRange ¶
func Vec3Length ¶
func Vec3LengthSquared ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.