Пример #1
0
 public override void Rotate(float angle, Axis axis)
 {
     Pivot.Rotate(angle, axis);
     GlobalVertices = LocalVertices.Select(v => Pivot.ToGlobalCoords(v)).ToArray();
     OnRotateEvent(angle, axis);
     if (Enviroment != null)
     {
         Enviroment.OnChangeEvent();
     }
 }
 public IEnumerator <IPolysurfaceVertex> GetEnumerator()
 {
     return(LocalVertices.Select(v => (IPolysurfaceVertex) new TransformedVertex(v, _parent)).GetEnumerator());
 }
Пример #3
0
 public void RotateAt(Vector3 point, float angle, Axis axis)
 {
     Pivot.RotateAt(point, angle, axis);
     GlobalVertices = LocalVertices.Select(v => Pivot.ToGlobalCoords(v)).ToArray();
 }
Пример #4
0
 public void Scale(float k)
 {
     LocalVertices  = LocalVertices.Select(v => v * k).ToArray();
     GlobalVertices = LocalVertices.Select(v => Pivot.ToGlobalCoords(v)).ToArray();
 }