engine.math

Undocumented in source.

Modules

camera
module engine.math.camera
Undocumented in source.
obb
module engine.math.obb
Undocumented in source.
transform
module engine.math.transform
Undocumented in source.

Public Imports

engine.math.camera
public import engine.math.camera;
Undocumented in source.
engine.math.transform
public import engine.math.transform;
Undocumented in source.
engine.math.obb
public import engine.math.obb;
Undocumented in source.
std.math
public import std.math;
Undocumented in source.
gl3n.math
public import gl3n.math;
Undocumented in source.
gl3n.linalg
public import gl3n.linalg;
Undocumented in source.
gl3n.aabb
public import gl3n.aabb;
Undocumented in source.
gl3n.interpolate
public import gl3n.interpolate;
Undocumented in source.

Members

Functions

castScreenSpaceRay
Ray castScreenSpaceRay(vec2 mouse, vec2 viewSize, mat4 vp)

Casts a screen space ray from the mouse position

dampen
vec3 dampen(vec3 pos, vec3 target, float delta, float speed)

Smoothly dampens from a position to a target

isRayIntersecting
bool isRayIntersecting(OBB boundingBox, Ray ray, mat4 modelmatrix, float iDist)

Gets whether a ray is intersecting a bounding box

Structs

Ray
struct Ray

A basic ray

Meta