C# Class World.Physics.Utils

Afficher le fichier Open project: GoodAI/BrainSimulator

Méthodes publiques

Méthode Description
ComposeSpeed ( System.Vector2 speeds ) : float>.Tuple

ComposeSpeed ( System.Vector2 speeds, float referenceDirection ) : float>.Tuple

DecomposeSpeed ( float speed, float direction ) : System.Vector2
DecomposeSpeed ( float speed, float direction, float referenceDirection ) : System.Vector2
Move ( System.Vector2 initialPosition, float directionInRads, float speed ) : System.Vector2

Method Details

ComposeSpeed() public static méthode

public static ComposeSpeed ( System.Vector2 speeds ) : float>.Tuple
speeds System.Vector2
Résultat float>.Tuple

ComposeSpeed() public static méthode

public static ComposeSpeed ( System.Vector2 speeds, float referenceDirection ) : float>.Tuple
speeds System.Vector2
referenceDirection float
Résultat float>.Tuple

DecomposeSpeed() public static méthode

public static DecomposeSpeed ( float speed, float direction ) : System.Vector2
speed float
direction float
Résultat System.Vector2

DecomposeSpeed() public static méthode

public static DecomposeSpeed ( float speed, float direction, float referenceDirection ) : System.Vector2
speed float
direction float
referenceDirection float
Résultat System.Vector2

Move() public static méthode

public static Move ( System.Vector2 initialPosition, float directionInRads, float speed ) : System.Vector2
initialPosition System.Vector2
directionInRads float
speed float
Résultat System.Vector2