Table of Contents

Namespace Vintagestory.API.MathTools

Classes

Cuboidf

Represents a three dimensional axis-aligned cuboid using two 3D coordinates. Used for collision and selection boxes. Open in GitHub

Cuboidi

A 3D cuboid, created out of integers. Open in GitHub

NatFloat

A more natural random number generator (nature usually doesn't grow by the exact same numbers nor does it completely randomly) Open in GitHub

Size3f

Represents a vector of 3 floats. Go bug Tyron of you need more utility methods in this class. Open in GitHub

Vec2d

Represents a vector of 2 doubles. Go bug Tyron of you need more utility methods in this class. Open in GitHub

Vec2f

Represents a vector of 2 floats. Go bug Tyron of you need more utility methods in this class. Open in GitHub

Vec2i

Represents a vector of 2 ints. Go bug Tyron if you need more utility methods in this class. Open in GitHub

Vec3d

Represents a vector of 3 doubles. Go bug Tyron of you need more utility methods in this class. Open in GitHub

Vec3f

Represents a vector of 3 floats. Go bug Tyron of you need more utility methods in this class. Open in GitHub

Vec3i

Represents a vector of 3 ints. Go bug Tyron if you need more utility methods in this class. Open in GitHub

Structs

EvolvingNatFloat

A number generator whose return value changes over time, parametrized by a transform function and some constants

FastVec2f

A fast version of Vec2f

FastVec2i

Represents a vector of 2 ints. Go bug Tyron if you need more utility methods in this class.

FastVec3d

Represents a vector of 3 doubles

FastVec3f

Represents a vector of 3 floats. Go bug Tyron if you need more utility methods in this class.

FastVec3i

Represents a vector of 3 ints, similar to a Vec3i or a BlockPos but this is a struct

Vec2iStruct

Represents a vector of 2 ints. Go bug Tyron if you need more utility methods in this class.

Enums

EnumColorBlendMode

Specifies types of per-pixel color blending. Open in GitHub

EnumCombination

Used to define how variant types interact with each other to create unique objects. Open in GitHub

EnumDistribution

The distribution of the random numbers Open in GitHub

EnumTransformFunction

Used for EvolvingNatFloat value transforms Open in GitHub