- 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.
Inochi2D Math Primitives