Documentation ¶
Index ¶
- func Uint32Mul64(a, b uint32) uint64
- func Uint32ToFloat32(val uint32) float32
- func Uint32ToFloat32Range11(val uint32) float32
- func Uint64Add32(a uint64, b uint32) uint64
- func Uint64FromLoHi(a Uint32Vec2) uint64
- func Uint64Incr(a uint64) uint64
- type Float32Vec2
- type Float32Vec3
- type Float32Vec4
- type Int32Vec2
- type Int32Vec4
- type IntVec3
- type Uint32Vec2
- type Uint32Vec3
- type Uint32Vec4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Uint32Mul64 ¶
Uint32Mul64 multiplies two uint32 numbers into a uint64.
func Uint32ToFloat32 ¶
Uint32ToFloat32 converts a uint32 integer into a float32 in the (0,1) interval (i.e., exclusive of 1). This differs from the Go standard by excluding 0, which is handy for passing directly to Log function, and from the reference Philox code by excluding 1 which is in the Go standard and most other standard RNGs.
func Uint32ToFloat32Range11 ¶
Uint32ToFloat32Range11 converts a uint32 integer into a float32 in the [-1..1] interval (inclusive of -1 and 1, never identically == 0).
func Uint64Add32 ¶
Uint64Add32 adds given uint32 number to given uint64.
func Uint64FromLoHi ¶
func Uint64FromLoHi(a Uint32Vec2) uint64
Uint64FromLoHi combines lo and hi uint32 components into a uint64 value.
func Uint64Incr ¶
Uint64Incr returns increment of the given uint64.
Types ¶
type Float32Vec2 ¶
Float32Vec2 is a length 2 vector of float32
func Uint32ToFloat32Range11Vec2 ¶
func Uint32ToFloat32Range11Vec2(val Uint32Vec2) Float32Vec2
Uint32ToFloat32Range11Vec2 converts two uint32 integers into two float32 in the [-1,1] interval (inclusive of -1 and 1, never identically == 0)
func Uint32ToFloat32Vec2 ¶
func Uint32ToFloat32Vec2(val Uint32Vec2) Float32Vec2
Uint32ToFloat32Vec2 converts two uint32 bit integers into two corresponding 32 bit f32 values in the (0,1) interval (i.e., exclusive of 1).
type Uint32Vec2 ¶
Uint32Vec2 is a length 2 vector of uint32
func Uint64ToLoHi ¶
func Uint64ToLoHi(a uint64) Uint32Vec2
Uint64ToLoHi splits a uint64 number into lo and hi uint32 components.
type Uint32Vec3 ¶
Uint32Vec3 is a length 3 vector of uint32
type Uint32Vec4 ¶
Uint32Vec4 is a length 4 vector of uint32
func (*Uint32Vec4) SetFromVec2 ¶
func (u *Uint32Vec4) SetFromVec2(u2 Uint32Vec2)