Table of Contents

Namespace Stride.CommunityToolkit.Mathematics

Classes

Easing

Easing curves: functions from a normalised time in [0, 1] to a progress in [0, 1] that start at 0, end at 1, and shape the motion in between.

EasingFunctionExtensions

The fluent face of Easing: evaluate or interpolate straight from an EasingFunction value, so a curve held in a field or a setting reads as curve.Interpolate(from, to, t).

MathUtilEx

Some more common utility methods for math operations.

QuaternionUtil

Rotations that Quaternion does not build directly.

RandomExtensions

Helper extension methods for Random tailored for gameplay and procedural content scenarios.

RandomListExtensions

Provides extension methods for the Random class to facilitate random selection and shuffling of collections.

Tween

A clock over one easing curve: start it, feed it the frame time, read a value between 0 and 1 or a value interpolated between two of your own. The plumbing every eased animation needs - a start, a duration, elapsed time, what happens at the end - in one object instead of three fields and an if.

Structs

RaySegment

Represents a line segment between two points in 3D space.

Enums

ColorTone

The part of the colour space NextColor(Random, ColorTone) draws from. The hue is always spread evenly round the wheel; the tone sets the saturation and the brightness.

EasingFunction

The easing curves Easing implements, selectable by value so an animation can be configured with a name instead of a method.

TweenLoop

What a Tween does when its clock reaches the end of its duration.