Lib.numbers.vec2¶
Sub-namespaces¶
Operators¶
- AddVec2 — Adds two Vec2 variables together
- DampVec2 — Smooths the incoming Vector2.
- DivideVector2
- DotVec2 — Applies a dot product to two Vec2's
- GridPosition — Converts an index to a grid raster position and sizes that can be used to draw a [Layer2d].
- HasVec2Changed — Checks if the change of the incoming vector exceeded the given threshold.
- Int2ToVector2 — Converts an [Int2] into a [Vector2]
- PadVec2Range — Pad (aka extend) a value range (x=min and y=max).
- PerlinNoise2 — Generates a continuously and randomly changing value in the predefined range based on Perlin Noise / Gradient Noise.
- PickVector2 — Selects one Vector2 of many, like a switch.
- RemapVec2 — Remaps an incoming Vec2 from one value range to another. This can be useful for conforming vectors to a range or for inverting components.
- ScaleVector2 — Multiplies two incoming [Vector2]s with each other
- Vec2ToVec3 — Converts a vec2 and a single to a vec3
- Vector2Components — Converts a Vector2 into two individual values
Auto-generated from the operator library.