C# Class BananaMpq.MathUtil

Afficher le fichier Open project: sgraf812/BananaMpq

Méthodes publiques

Méthode Description
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

Method Details

Clamp() public static méthode

public static Clamp ( int value, int min, int max ) : int
value int
min int
max int
Résultat int

Contains() public static méthode

public static Contains ( this rect, Vector2 v ) : bool
rect this
v Vector2
Résultat bool

Contains() public static méthode

public static Contains ( this rect, Vector3 v ) : bool
rect this
v Vector3
Résultat bool

Intersects() public static méthode

public static Intersects ( this rect, BoundingBox box ) : bool
rect this
box BoundingBox
Résultat bool

Transform() public static méthode

public static Transform ( this vertices, Matrix transform ) : IEnumerable
vertices this
transform Matrix
Résultat IEnumerable

TriangleNormal() public static méthode

public static TriangleNormal ( Vector3 a, Vector3 b, Vector3 c ) : Vector3
a Vector3
b Vector3
c Vector3
Résultat Vector3

Union() public static méthode

public static Union ( this a, BoundingBox b ) : BoundingBox
a this
b BoundingBox
Résultat BoundingBox