예제 #1
0
 public Vector3f getDisplacement ( Matrix4f target ) {
     return new Vector3f( target.TranslationX - TranslationX, target.TranslationY - TranslationY, target.TranslationZ - TranslationZ );
 }
예제 #2
0
 public float translationDistance ( Matrix4f matrix4 ) {
     return Vector3f.distance(
         TranslationX, TranslationY, TranslationZ,
         matrix4.TranslationX, matrix4.TranslationY, matrix4.TranslationZ
     );
 }
예제 #3
0
 public Matrix4f ( Matrix4f matrix4f ) : base( matrix4f ) {
 }
예제 #4
0
 /*
 public Body ( float mass, Vector3f initialPosition ) : this( mass ) {
     position = new Vector3f( initialPosition );
 }*/
 public Body( float mass, Matrix4f initialTransform )
     : this(mass)
 {
     Transform = new Matrix4f( initialTransform );
 }
예제 #5
0
 public Body( float mass )
 {
     Mass = mass;
     Transform = new Matrix4f( true );
     Restitution = 1.0f;
 }
예제 #6
0
 public CenteredBody( float mass, float radius, Matrix4f initialTransform )
     : base(mass, initialTransform)
 {
     Radius = radius;
 }
예제 #7
0
 public float getDistance( Matrix4f transform )
 {
     return Normal.dot( transform.TranslationX, transform.TranslationY, transform.TranslationZ ) + DistanceToOrigin;
 }