Project

General

Profile

« Previous | Next » 

Revision 57ef6378

Added by Leszek Koltunski over 2 years ago

Float vertices - scratchbook

View differences:

src/main/java/org/distorted/objectlib/touchcontrol/TouchControl.java
39 39
  public static final int TC_DODECAHEDRON =12;
40 40
  public static final int TC_CUBOID       = 0;
41 41

  
42
  public abstract boolean faceTouched(Static4D rotatedTouchPoint, Static4D rotatedCamera);
43
  public abstract Static2D newRotation(Static4D rotatedTouchPoint);
44
  public abstract Static4D getCastedRotAxis(int rotIndex);
42
  float mObjectRatio;
43

  
44
///////////////////////////////////////////////////////////////////////////////////////////////////
45

  
46
  public TouchControl()
47
    {
48
    mObjectRatio = 1.0f;
49
    }
50

  
51
///////////////////////////////////////////////////////////////////////////////////////////////////
52

  
53
  public void setObjectRatio(float ratio)
54
    {
55
    mObjectRatio = ratio;
56
    }
57

  
58
///////////////////////////////////////////////////////////////////////////////////////////////////
59

  
60
  public abstract boolean objectTouched(Static4D rotatedTouchPoint, Static4D rotatedCamera);
61
  public abstract void newRotation(int[] output, Static4D rotatedTouchPoint);
62
  public abstract void getCastedRotAxis(float[] output, Static4D quat, int rotIndex);
45 63
  public abstract int getTouchedFace();
46 64
  public abstract float[] getTouchedPoint3D();
47
  public abstract void setObjectRatio(float ratio);
48 65
  public abstract float returnRotationFactor(int[] numLayers, int row);
49 66
  }

Also available in: Unified diff