Package jinngine.geometry

Examples of jinngine.geometry.SupportMap3


      sphere = 0;
    }
   
   
    // translated support mapping Sc+x
    final SupportMap3 Sa;   
    if (Sc == null) {
      Sa = new SupportMap3() {
        @Override
        public final Vector3 supportPoint(Vector3 direction) { return new Vector3(x); }
        @Override
        public final void supportFeature(Vector3 d, List<Vector3> returnList) {}
        @Override
        public final double sphereSweepRadius() {return 0;}
      };
    } else {
      // if Sc is given, add it to the second support map
      Sa = new SupportMap3() {
        @Override
        public final Vector3 supportPoint(Vector3 direction) { return x.add(Sc.supportPoint(direction)); }
        @Override
        public final void supportFeature(Vector3 d, List<Vector3> returnList) {}
        @Override
View Full Code Here


    this.b1 = b1;
    this.b2 = b2;
    this.g1 = g1;

    // SupportMap for the sphere centre
    this.pointmap = new SupportMap3() {
      public final Vector3 supportPoint(Vector3 direction) { return new Vector3(spherecentreworld); }
      public final void supportFeature(Vector3 d, List<Vector3> face) {}
      public final double sphereSweepRadius() {return 0;}
    };
   
View Full Code Here

    this.b1 = b1;
    this.g1 = g1;
    this.b2 = b2;

    // SupportMap for the sphere centre
    this.pointmap = new SupportMap3() {
      public final Vector3 supportPoint(Vector3 direction) { return new Vector3(spherecentreworld); }
      public final void supportFeature(Vector3 d, List<Vector3> face) {}
      public final double sphereSweepRadius() { return 0; }
    };
   
View Full Code Here

TOP

Related Classes of jinngine.geometry.SupportMap3

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.