Beispiel #1
0
  private void cCMarker(MixVector originalPoint, Camera viewCam, float addX, float addY) {

    // Temp properties
    MixVector tmpa = new MixVector(originalPoint);
    MixVector tmpc = new MixVector(upV);
    tmpa.add(locationVector); // 3
    tmpc.add(locationVector); // 3
    tmpa.sub(viewCam.lco); // 4
    tmpc.sub(viewCam.lco); // 4
    tmpa.prod(viewCam.transform); // 5
    tmpc.prod(viewCam.transform); // 5

    MixVector tmpb = new MixVector();
    viewCam.projectPoint(tmpa, tmpb, addX, addY); // 6
    cMarker.set(tmpb); // 7
    viewCam.projectPoint(tmpc, tmpb, addX, addY); // 6
    signMarker.set(tmpb); // 7
  }
Beispiel #2
0
 public void setOriginVector(float x, float y, float z) {
   originVector.set(x, y, z);
 }