Documentation
¶
Overview ¶
Package ivec2 provides GPU operations on two-component signed integer vectors.
Index ¶
- func BitsToFloat(a XY) gpu.Vec2
- func Equal(a, b XY) gpu.Vec2b
- func GreaterThan(a, b XY) gpu.Vec2b
- func GreaterThanEqual(a, b XY) gpu.Vec2b
- func LessThan(a, b XY) gpu.Vec2b
- func LessThanEqual(a, b XY) gpu.Vec2b
- func NotEqual(a, b XY) gpu.Vec2b
- type XY
- func Abs(a XY) XY
- func Add[T gpu.AnyInt | XY](a XY, b T) XY
- func Clamp[T XY | gpu.AnyInt](a XY, min, max T) XY
- func Div[T gpu.AnyInt | XY](a XY, b T) XY
- func Max[T gpu.AnyInt | XY](a XY, b T) XY
- func Min[B gpu.AnyInt | XY](a XY, b B) XY
- func Mul[T gpu.AnyInt | XY](a XY, b T) XY
- func Neg(a XY) XY
- func New[X, Y gpu.AnyInt](x X, y Y) XY
- func Sign(a XY) XY
- func Sub[T gpu.AnyInt | XY](a XY, b T) XY
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitsToFloat ¶
func GreaterThan ¶
func GreaterThanEqual ¶
func LessThanEqual ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.