C# Class LOLViewer.Graphics.GLArcBall

Afficher le fichier Open project: utensil/lolmodelviewer Class Usage Examples

Méthodes publiques

Méthode Description
GLArcBall ( ) : System
GetRotationMatrix ( ) : Matrix4
OnBeginDrag ( float x, float y ) : void

Call when the user begins to change orientation.

OnMove ( float x, float y ) : void

Call when mouse is moved.

OnStopDrag ( ) : void
Reset ( ) : void
SetNowQuat ( Quaternion q ) : void
SetWindow ( float width, float height ) : void

Private Methods

Méthode Description
QuatFromBallPoints ( Vector3 from, Vector3 to ) : Quaternion
ScreenToVector ( float screentPointX, float screenPointY ) : Vector3

Method Details

GLArcBall() public méthode

public GLArcBall ( ) : System
Résultat System

GetRotationMatrix() public méthode

public GetRotationMatrix ( ) : Matrix4
Résultat Matrix4

OnBeginDrag() public méthode

Call when the user begins to change orientation.
public OnBeginDrag ( float x, float y ) : void
x float Actual position. Not delta.
y float Acutal position. Not delta.
Résultat void

OnMove() public méthode

Call when mouse is moved.
public OnMove ( float x, float y ) : void
x float Actual position. Not delta.
y float Actual position. Not delta.
Résultat void

OnStopDrag() public méthode

public OnStopDrag ( ) : void
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

SetNowQuat() public méthode

public SetNowQuat ( Quaternion q ) : void
q Quaternion
Résultat void

SetWindow() public méthode

public SetWindow ( float width, float height ) : void
width float
height float
Résultat void