C# Класс BananaMpq.MathUtil

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

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

Метод Описание
Clamp ( int value, int min, int max ) : int
Contains ( this rect, Vector2 v ) : bool
Contains ( this rect, Vector3 v ) : bool
Intersects ( this rect, BoundingBox box ) : bool
Transform ( this vertices, Matrix transform ) : IEnumerable
TriangleNormal ( Vector3 a, Vector3 b, Vector3 c ) : Vector3
Union ( this a, BoundingBox b ) : BoundingBox

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

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

public static Clamp ( int value, int min, int max ) : int
value int
min int
max int
Результат int

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

public static Contains ( this rect, Vector2 v ) : bool
rect this
v Vector2
Результат bool

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

public static Contains ( this rect, Vector3 v ) : bool
rect this
v Vector3
Результат bool

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

public static Intersects ( this rect, BoundingBox box ) : bool
rect this
box BoundingBox
Результат bool

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

public static Transform ( this vertices, Matrix transform ) : IEnumerable
vertices this
transform Matrix
Результат IEnumerable

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

public static TriangleNormal ( Vector3 a, Vector3 b, Vector3 c ) : Vector3
a Vector3
b Vector3
c Vector3
Результат Vector3

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

public static Union ( this a, BoundingBox b ) : BoundingBox
a this
b BoundingBox
Результат BoundingBox