private void OnTransformationUpdated(Transformation transformation)
 {
     if (sphere != null) {
         sphere.Transformation = transformation;
     }
 }
 public static Transformation TranslateBy(double x, double y, double z)
 {
     Transformation result = new Transformation();
     result.SetTranslation(x, y, z);
     return result;
 }
 public static Transformation ScaleBy(double x, double y, double z)
 {
     Transformation result = new Transformation();
     result.SetScale(x, y, z);
     return result;
 }
 public Transformation(Transformation clone)
 {
     translation = new Vector3d(clone.translation);
     scale = new Vector3d(clone.scale);
 }
示例#5
0
 private void OnTransformationUpdated(Transformation transformation)
 {
     NotifyPrimitiveUpdated();
 }
 private void OnTransformationUpdated(Transformation transformation)
 {
     if (cylinder != null) {
         cylinder.Transformation = transformation;
     }
 }