Documentation ¶
Overview ¶
Package vec3 provides GPU operations on three-component floating-point vectors.
Index ¶
- func Distance(a, b XYZ) gpu.Float
- func Dot(a, b XYZ) gpu.Float
- func Equal(a, b XYZ) gpu.Vec3b
- func FloatBitsToInt[A gpu.AnyFloat](a A) gpu.Vec3i
- func FloatBitsToUint[A gpu.AnyFloat](a A) gpu.Vec3u
- func GreaterThan(a, b XYZ) gpu.Vec3b
- func GreaterThanEqual(a, b XYZ) gpu.Vec3b
- func IsInf(a XYZ) gpu.Vec3b
- func IsNaN(a XYZ) gpu.Vec3b
- func Length(a XYZ) gpu.Float
- func LessThan(a, b XYZ) gpu.Vec3b
- func LessThanEqual(a, b XYZ) gpu.Vec3b
- func Modf(a XYZ) (XYZ, XYZ)
- func NotEqual(a, b XYZ) gpu.Vec3b
- type RGB
- type XYZ
- func Abs(a XYZ) XYZ
- func Acos(a XYZ) XYZ
- func Acosh(a XYZ) XYZ
- func Add[T gpu.AnyFloat | XYZ](a XYZ, b T) XYZ
- func Asin(a XYZ) XYZ
- func Asinh(a XYZ) XYZ
- func Atan(a XYZ) XYZ
- func Atan2(a, b XYZ) XYZ
- func Atanh(a XYZ) XYZ
- func Ceil(a XYZ) XYZ
- func ClampX[A, B gpu.AnyFloat](a XYZ, min A, max B) XYZ
- func Clmap(a, min, max XYZ) XYZ
- func Cos(a XYZ) XYZ
- func Cosh(a XYZ) XYZ
- func Cross(a, b, c XYZ) XYZ
- func DFdx(a XYZ) XYZ
- func DFdy(a XYZ) XYZ
- func Degrees(a XYZ) XYZ
- func Div[T gpu.AnyFloat | XYZ](a XYZ, b T) XYZ
- func Exp(a XYZ) XYZ
- func Exp2(a XYZ) XYZ
- func FaceForward(a, b, n XYZ) XYZ
- func Floor(a XYZ) XYZ
- func Fract(a XYZ) XYZ
- func Fwidth(a XYZ) XYZ
- func InverseSqrt(a XYZ) XYZ
- func Log(a XYZ) XYZ
- func Log2(a XYZ) XYZ
- func Max[T gpu.AnyFloat | XYZ](a XYZ, b T) XYZ
- func Min[T gpu.AnyFloat | XYZ](a XYZ, b T) XYZ
- func Mix[T gpu.AnyFloat | XYZ](a XYZ, b, t T) XYZ
- func Mod[T gpu.AnyFloat | XYZ](a XYZ, b T) XYZ
- func Mul[T gpu.AnyFloat | XYZ](a XYZ, b T) XYZ
- func Neg(a XYZ) XYZ
- func New[X, Y, Z gpu.AnyFloat](x X, y Y, z Z) XYZ
- func Normalize(a XYZ) XYZ
- func Pow(a, b XYZ) XYZ
- func Radians(a XYZ) XYZ
- func Reflect(a, b XYZ) XYZ
- func Refract[T gpu.AnyFloat](a, b XYZ, eta T) XYZ
- func Round(a XYZ) XYZ
- func RoundEven(a XYZ) XYZ
- func Sign(a XYZ) XYZ
- func Sin(a XYZ) XYZ
- func Sinh(a XYZ) XYZ
- func SmoothStep[T gpu.AnyFloat | XYZ](a, b T, x XYZ) XYZ
- func Sqrt(a XYZ) XYZ
- func Step[T gpu.AnyFloat | XYZ](a T, x XYZ) XYZ
- func Sub[T gpu.AnyFloat | XYZ](a XYZ, b T) XYZ
- func Tan(a XYZ) XYZ
- func Tanh(a XYZ) XYZ
- func Trunc(a XYZ) XYZ
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GreaterThan ¶
func GreaterThanEqual ¶
func LessThanEqual ¶
Types ¶
type XYZ ¶
XYZ is a three-component vector of floating-point values on the GPU.
func FaceForward ¶
func InverseSqrt ¶
Click to show internal directories.
Click to hide internal directories.