Exemple #1
0
 //---------------------------------------------------------------------
 EbVector3 calAcc(Acceleration acceleration, float time)
 {
     return(acceleration.t * EbMath.Sin(acceleration.m * time));
 }
Exemple #2
0
 public static float Angle(EbVector3 from, EbVector3 to)
 {
     return(EbMath.Acos(EbMath.Clamp(EbVector3.dot(from.normalized, to.normalized), -1f, 1f)));
 }