public void Translate(float x, float y, float z) { PVector originalVector = new PVector(x, y, z); PVector rotatedVector = getRotatedVector(originalVector); origin.Add(rotatedVector); }
public PVector GetTransformedVector(float x, float y, float z) { PVector originalVector = new PVector(x, y, z); PVector rotatedVector = getRotatedVector(originalVector); rotatedVector.Add(origin); return(rotatedVector); }