Skip to content

MathUtils

Graydon edited this page Mar 21, 2017 · 5 revisions

public static class MathUtils

Methods

public static Rect LerpRect(Rect src, Rect dst, float lerp)
public static Vector3 SphericalToCartesian(Vector3 v)
public static float Remap(float value, float srcMin, float srcMax, float dstMin, float dstMax)
public static float RemapClamp(float value, float srcMin, float srcMax, float dstMin, float dstMax)
public static Matrix4x4 RemoveScale(Matrix4x4 mat)
public static float Integrate(float src, float dst, float speed, float time)
public static float Determinant3x3(Vector3 a, Vector3 b, Vector3 c)
public static bool PointTetrahedronIntersect(Vector3 a, Vector3 b, Vector3 c, Vector3 d, Vector3 p, out float u, out float v, out float t)
public static bool Solve(Vector3 a, Vector3 b, Vector3 c, Vector3 r, out float u, out float v, out float t)
public static bool InsideFrustum(Bounds bounds, Plane a, Plane b, Plane c, Plane d, Plane e, Plane f)
public static bool InsideFrustum(Vector3 point, float radius, Plane a, Plane b, Plane c, Plane d, Plane e, Plane f)
public static float SmoothClamp01(float s)
public static float SmoothStep(float edge0, float edge1, float x)
public static float SmootherStep(float edge0, float edge1, float x)

Clone this wiki locally