AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
#include <CzMath.h>
Static Public Member Functions | |
static float | AngleDiff (float a1, float a2) |
static float | abs (float n) |
static int | abs (int n) |
static float | sqrt (float n) |
static float | sin (float n) |
static float | cos (float n) |
static float | tan (float n) |
static float | acos (float n) |
static float | atan (float n) |
static float | atan2 (float n1, float n2) |
static float | RadToDeg (float n) |
static float | DegToRad (float n) |
static void | QuatSLERP (float *pQ1, float *pQ2, float *pQOut, float t) |
static void | SeedRand (unsigned int seed) |
static int | Rand () |
static float | Rand (float range) |
static int | PointClosestToPerimeter (CzVec3 &point, CzVec3 *v, int nNumLines, CzVec3 &out) |
static float | PointDistanceToPlane (CzVec3 &point, CzVec3 &pop, CzVec3 &normal) |
static void | PointProjectOntoPlane (CzVec3 &point, CzVec3 &pop, CzVec3 &normal, CzVec3 &out) |
static bool | PointInsidePolygon (CzVec3 &point, CzVec3 *poly, int nNumPoints) |
static float | PointIntersectWedge (CzVec3 &wedge_base_pos, CzVec3 &wedge_size, int type, CzVec3 &pos) |
static float | LineIntersectPlane (CzVec3 &line_start, CzVec3 &line_end, CzVec3 &pop, CzVec3 &normal, CzVec3 &out) |
static float | RayIntersectSphere (CzVec3 &ray_pos, CzVec3 &ray_dir, CzVec3 &sphere_pos, float radius, CzVec3 &out) |
static float | LineIntersectCappedCylinder (CzVec3 &line_start, CzVec3 &line_end, CzVec3 &cyl_start, CzVec3 &cyl_end, float radius, CzVec3 &out) |
static float | SphereIntersectPlane (CzVec3 &sphere_pos, CzVec3 &sphere_vel, CzVec3 &pop, CzVec3 &normal, CzVec3 &out, float radius) |
static bool | SphereIntersectCuboidTest (CzVec3 &sphere_pos, float sphere_size, CzVec3 &box_pos, CzVec3 &box_size) |
static int | CuboidIntersectTest (CzVec3 &box1_pos, CzVec3 &box1_size, CzVec3 &box2_pos, CzVec3 &box2_size) |
static CzVec3 | CalcSlideVelocity (CzVec3 &original_pos, CzVec3 &original_vel, CzVec3 &pop, CzVec3 &normal, CzVec3 &cp) |
static int | PointInsidePolygon2D (CzVec3 &point, CzVec3 *poly, int nNumPoints) |
float CzMath::abs | ( | float | n | ) | [static] |
int CzMath::abs | ( | int | n | ) | [static] |
float CzMath::acos | ( | float | n | ) | [static] |
float CzMath::AngleDiff | ( | float | a1, |
float | a2 | ||
) | [static] |
float CzMath::atan | ( | float | n | ) | [static] |
float CzMath::atan2 | ( | float | n1, |
float | n2 | ||
) | [static] |
CzVec3 CzMath::CalcSlideVelocity | ( | CzVec3 & | original_pos, |
CzVec3 & | original_vel, | ||
CzVec3 & | pop, | ||
CzVec3 & | normal, | ||
CzVec3 & | cp | ||
) | [static] |
float CzMath::cos | ( | float | n | ) | [static] |
int CzMath::CuboidIntersectTest | ( | CzVec3 & | box1_pos, |
CzVec3 & | box1_size, | ||
CzVec3 & | box2_pos, | ||
CzVec3 & | box2_size | ||
) | [static] |
float CzMath::DegToRad | ( | float | n | ) | [static] |
float CzMath::LineIntersectCappedCylinder | ( | CzVec3 & | line_start, |
CzVec3 & | line_end, | ||
CzVec3 & | cyl_start, | ||
CzVec3 & | cyl_end, | ||
float | radius, | ||
CzVec3 & | out | ||
) | [static] |
float CzMath::LineIntersectPlane | ( | CzVec3 & | line_start, |
CzVec3 & | line_end, | ||
CzVec3 & | pop, | ||
CzVec3 & | normal, | ||
CzVec3 & | out | ||
) | [static] |
int CzMath::PointClosestToPerimeter | ( | CzVec3 & | point, |
CzVec3 * | v, | ||
int | nNumLines, | ||
CzVec3 & | out | ||
) | [static] |
float CzMath::PointDistanceToPlane | ( | CzVec3 & | point, |
CzVec3 & | pop, | ||
CzVec3 & | normal | ||
) | [static] |
bool CzMath::PointInsidePolygon | ( | CzVec3 & | point, |
CzVec3 * | poly, | ||
int | nNumPoints | ||
) | [static] |
static int CzMath::PointInsidePolygon2D | ( | CzVec3 & | point, |
CzVec3 * | poly, | ||
int | nNumPoints | ||
) | [static] |
float CzMath::PointIntersectWedge | ( | CzVec3 & | wedge_base_pos, |
CzVec3 & | wedge_size, | ||
int | type, | ||
CzVec3 & | pos | ||
) | [static] |
void CzMath::PointProjectOntoPlane | ( | CzVec3 & | point, |
CzVec3 & | pop, | ||
CzVec3 & | normal, | ||
CzVec3 & | out | ||
) | [static] |
void CzMath::QuatSLERP | ( | float * | pQ1, |
float * | pQ2, | ||
float * | pQOut, | ||
float | t | ||
) | [static] |
float CzMath::RadToDeg | ( | float | n | ) | [static] |
int CzMath::Rand | ( | ) | [static] |
float CzMath::Rand | ( | float | range | ) | [static] |
float CzMath::RayIntersectSphere | ( | CzVec3 & | ray_pos, |
CzVec3 & | ray_dir, | ||
CzVec3 & | sphere_pos, | ||
float | radius, | ||
CzVec3 & | out | ||
) | [static] |
void CzMath::SeedRand | ( | unsigned int | seed | ) | [static] |
float CzMath::sin | ( | float | n | ) | [static] |
bool CzMath::SphereIntersectCuboidTest | ( | CzVec3 & | sphere_pos, |
float | sphere_size, | ||
CzVec3 & | box_pos, | ||
CzVec3 & | box_size | ||
) | [static] |
float CzMath::SphereIntersectPlane | ( | CzVec3 & | sphere_pos, |
CzVec3 & | sphere_vel, | ||
CzVec3 & | pop, | ||
CzVec3 & | normal, | ||
CzVec3 & | out, | ||
float | radius | ||
) | [static] |
float CzMath::sqrt | ( | float | n | ) | [static] |
float CzMath::tan | ( | float | n | ) | [static] |