graphite.math

Undocumented in source.

Modules

linear
module graphite.math.linear
quaternion
module graphite.math.quaternion
Undocumented in source.
saturation
module graphite.math.saturation
Undocumented in source.

Public Imports

graphite.math.linear
public import graphite.math.linear, graphite.math.quaternion, graphite.math.saturation;
Undocumented in source.
graphite.math.quaternion
public import graphite.math.linear, graphite.math.quaternion, graphite.math.saturation;
Undocumented in source.
graphite.math.saturation
public import graphite.math.linear, graphite.math.quaternion, graphite.math.saturation;
Undocumented in source.

Members

Aliases

Matrix2x2f
alias Matrix2x2f = SMatrix!(float, 2, 2)

行列型

Matrix3x3f
alias Matrix3x3f = SMatrix!(float, 3, 3)
Undocumented in source.
Matrix4x4f
alias Matrix4x4f = SMatrix!(float, 4, 4)
Undocumented in source.
Vec2f
alias Vec2f = SMatrix!(float, 2, 1)

ベクトル型

Vec3f
alias Vec3f = SMatrix!(float, 3, 1)
Undocumented in source.
Vec4f
alias Vec4f = SMatrix!(float, 4, 1)
Undocumented in source.
sign
alias sign = signbit
Undocumented in source.

Functions

bezierPoint
T bezierPoint(T a, T b, T c, T d, real t)
Undocumented in source. Be warned that the author may not have intended to support it.
bezierTangent
T bezierTangent(T a, T b, T c, T d, real t)
Undocumented in source. Be warned that the author may not have intended to support it.
clamp
real clamp(real value, real min, real max)
Undocumented in source. Be warned that the author may not have intended to support it.
curvePoint
T curvePoint(T a, T b, T c, T d, real t)
Undocumented in source. Be warned that the author may not have intended to support it.
curveTangent
T curveTangent(T a, T b, T c, T d, real t)
Undocumented in source. Be warned that the author may not have intended to support it.
degToRad
real degToRad(real degrees)
Undocumented in source. Be warned that the author may not have intended to support it.
dist
real dist(real x1, real y1, real x2, real y2)
Undocumented in source. Be warned that the author may not have intended to support it.
interpolateCatmullRom
T interpolateCatmullRom(T y0, T y1, T y2, T y3, real pct)
Undocumented in source. Be warned that the author may not have intended to support it.
interpolateCosine
T interpolateCosine(T y1, T y2, real pct)
Undocumented in source. Be warned that the author may not have intended to support it.
interpolateCubic
T interpolateCubic(T y0, T y1, T y2, T y3, real pct)
Undocumented in source. Be warned that the author may not have intended to support it.
interpolateHermite
T interpolateHermite(T y0, T y1, T y2, T y3, real pct)
Undocumented in source. Be warned that the author may not have intended to support it.
isInRange
bool isInRange(float t, float min, float max)
Undocumented in source. Be warned that the author may not have intended to support it.
lerp
real lerp(real value, real[2] input, real[2] output)
Undocumented in source. Be warned that the author may not have intended to support it.
lerp
real lerp(real start, real stop, real amt)
Undocumented in source. Be warned that the author may not have intended to support it.
lerpDegrees
real lerpDegrees(real currAngle, real target, real pct)
Undocumented in source. Be warned that the author may not have intended to support it.
lerpRadians
real lerpRadians(real currAngle, real target, real pct)
Undocumented in source. Be warned that the author may not have intended to support it.
nextPow2
size_t nextPow2(T num, size_t next)

nextが1である場合に、next2Pow(num)はnumより大きく、かつ、最小の2の累乗数を返します。

normalize
real normalize(real value, real min, real max)
Undocumented in source. Be warned that the author may not have intended to support it.
ofInterpolateHermite
T ofInterpolateHermite(T y0, T y1, T y2, T y3, real pct, real tension, real bias)
Undocumented in source. Be warned that the author may not have intended to support it.
radToDeg
real radToDeg(real radians)
Undocumented in source. Be warned that the author may not have intended to support it.
random
real random(real max)
Undocumented in source. Be warned that the author may not have intended to support it.
random
real random(real x, real y)
Undocumented in source. Be warned that the author may not have intended to support it.
wrap
real wrap(real value, real from, real to)
Undocumented in source. Be warned that the author may not have intended to support it.
wrapDegrees
real wrapDegrees(real angle, real from, real to)
Undocumented in source. Be warned that the author may not have intended to support it.
wrapRadians
real wrapRadians(real angle, real from, real to)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta