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.

RandomExtensions

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

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 three dimensional line based on a 2 points in space.

Enums

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.