C# Класс UtilityTools.MathHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
AreIntersecting ( Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3, float errorMargin ) : int
AreIntersecting ( Vector3 &interSectPoint, Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3 ) : int
AreIntersecting ( Vector3 &interSectPoint, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3 ) : int
CheckSegmentIntersection ( Vector3 &interSectPoint, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : int
CheckSegmentIntersection ( float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : int
GetPointOnBezierCurve ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t ) : Vector3
LeftSideNormal ( Vector3 tangent ) : Vector3
PointInTriangle ( Vector3 p, Vector3 p0, Vector3 p1, Vector3 p2 ) : bool

Описание методов

AreIntersecting() публичный статический Метод

public static AreIntersecting ( Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3, float errorMargin ) : int
p0 UnityEngine.Vector2
p1 UnityEngine.Vector2
p2 UnityEngine.Vector2
p3 UnityEngine.Vector2
errorMargin float
Результат int

AreIntersecting() публичный статический Метод

public static AreIntersecting ( Vector3 &interSectPoint, Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3 ) : int
interSectPoint UnityEngine.Vector3
p0 UnityEngine.Vector2
p1 UnityEngine.Vector2
p2 UnityEngine.Vector2
p3 UnityEngine.Vector2
Результат int

AreIntersecting() публичный статический Метод

public static AreIntersecting ( Vector3 &interSectPoint, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3 ) : int
interSectPoint UnityEngine.Vector3
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
p3 UnityEngine.Vector3
Результат int

CheckSegmentIntersection() публичный статический Метод

public static CheckSegmentIntersection ( Vector3 &interSectPoint, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : int
interSectPoint UnityEngine.Vector3
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
x4 float
y4 float
Результат int

CheckSegmentIntersection() публичный статический Метод

public static CheckSegmentIntersection ( float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : int
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
x4 float
y4 float
Результат int

GetPointOnBezierCurve() публичный статический Метод

public static GetPointOnBezierCurve ( Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t ) : Vector3
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
p3 UnityEngine.Vector3
t float
Результат UnityEngine.Vector3

LeftSideNormal() публичный статический Метод

public static LeftSideNormal ( Vector3 tangent ) : Vector3
tangent UnityEngine.Vector3
Результат UnityEngine.Vector3

PointInTriangle() публичный статический Метод

public static PointInTriangle ( Vector3 p, Vector3 p0, Vector3 p1, Vector3 p2 ) : bool
p UnityEngine.Vector3
p0 UnityEngine.Vector3
p1 UnityEngine.Vector3
p2 UnityEngine.Vector3
Результат bool