inochi2d.core.math

Inochi2D Math Primitives

Modules

deform
module inochi2d.core.math.deform

Deformation information.

simd
module inochi2d.core.math.simd

Inochi2D SIMD Helpers

transform
module inochi2d.core.math.transform

Transforms

trig
module inochi2d.core.math.trig

Inochi2D Triangles and trigonometry

Public Imports

inochi2d.core.math.transform
public import inochi2d.core.math.transform;
Undocumented in source.
inochi2d.core.math.deform
public import inochi2d.core.math.deform;
Undocumented in source.
inochi2d.core.math.trig
public import inochi2d.core.math.trig;
Undocumented in source.
numath.dampen
public import numath.dampen;
Undocumented in source.
numath
public import numath;
Undocumented in source.

Members

Aliases

vec2us
alias vec2us = VectorImpl!(ushort, 2)
Undocumented in source.
vec3us
alias vec3us = VectorImpl!(ushort, 3)
Undocumented in source.
vec4us
alias vec4us = VectorImpl!(ushort, 4)
Undocumented in source.

Classes

Camera
class Camera

A camera

Camera2D
class Camera2D

An orthographic camera

Enums

InterpolateMode
enum InterpolateMode

Different modes of interpolation between values.

Functions

areLineSegmentsIntersecting
bool areLineSegmentsIntersecting(vec2 p1, vec2 p2, vec2 p3, vec2 p4)

Checks if 2 lines segments are intersecting

calcOffsetInTriangleCoords
vec2 calcOffsetInTriangleCoords(vec2 pt, MeshData bindingMesh, int[] triangle)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(vec4 a, vec2 b)

Gets whether a point is within an axis aligned rectangle

findSurroundingTriangle
int[] findSurroundingTriangle(vec2 pt, MeshData bindingMesh)
Undocumented in source. Be warned that the author may not have intended to support it.
onSerialize
void onSerialize(T value, DataNode dst)

Serializes a provided vector type.

relativeVectorTo
vec3 relativeVectorTo(mat4 lhs, mat4 rhs)

Gets a relative vector between 2 matrices.

relativeVectorToInverse
vec3 relativeVectorToInverse(mat4 lhs, mat4 rhs)

Gets a relative vector between 2 matrices, with the multiplication-order of the left-hand and right-hand side inverted.

toInterpolateMode
InterpolateMode toInterpolateMode(string key)

Converts a string key into a interpolation mode.

Meta

Authors

Luna Nielsen Hoshino Lina