Skip to main content

Auki::Ark::MathFuncs

Public Functions

Name
doubleFourWayIntersectionSignsOnly(Vector2d p1, Vector2d dir1, Vector2d p2, Vector2d dir2)
Vector2LineToLineIntersection(Vector2 l1A, Vector2 l1B, Vector2 l2A, Vector2 l2B, float determinantTolerance =0.000001f)
Vector2dLineToLineIntersection(Vector2d l1A, Vector2d l1B, Vector2d l2A, Vector2d l2B, double determinantTolerance =0.000001)
Vector3PointDirPlaneIntersection(Vector3 p, Vector3 dir, Vector3 q, Vector3 normal)
floatAngleBetweenInDegrees(Vector3 pt1, Vector3 pt2)
floatABCAngleInDegrees(Vector3 a, Vector3 b, Vector3 c)
Vector3ParallelComponent(Vector3 v1, Vector3 v2)
Vector3PerpendicularComponent(Vector3 v1, Vector3 v2)
Vector2ProjectedOntoSegment(Vector2 A, Vector2 B, Vector2 pt)
floatRelativeDistanceToLine(Vector2 A, Vector2 B, Vector2 pt)

Public Attributes

Name
staticdouble

Public Functions Documentation

function FourWayIntersectionSignsOnly

static double FourWayIntersectionSignsOnly(
Vector2d p1,
Vector2d dir1,
Vector2d p2,
Vector2d dir2
)

function LineToLineIntersection

static Vector2 LineToLineIntersection(
Vector2 l1A,
Vector2 l1B,
Vector2 l2A,
Vector2 l2B,
float determinantTolerance =0.000001f
)

function LineToLineIntersection

static Vector2d LineToLineIntersection(
Vector2d l1A,
Vector2d l1B,
Vector2d l2A,
Vector2d l2B,
double determinantTolerance =0.000001
)

function PointDirPlaneIntersection

static Vector3 PointDirPlaneIntersection(
Vector3 p,
Vector3 dir,
Vector3 q,
Vector3 normal
)

function AngleBetweenInDegrees

static float AngleBetweenInDegrees(
Vector3 pt1,
Vector3 pt2
)

function ABCAngleInDegrees

static float ABCAngleInDegrees(
Vector3 a,
Vector3 b,
Vector3 c
)

function ParallelComponent

static Vector3 ParallelComponent(
Vector3 v1,
Vector3 v2
)

function PerpendicularComponent

static Vector3 PerpendicularComponent(
Vector3 v1,
Vector3 v2
)

function ProjectedOntoSegment

static Vector2 ProjectedOntoSegment(
Vector2 A,
Vector2 B,
Vector2 pt
)

function RelativeDistanceToLine

static float RelativeDistanceToLine(
Vector2 A,
Vector2 B,
Vector2 pt
)

Public Attributes Documentation

variable double

static static double;