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