Esempio n. 1
0
 static public float GetVolume(Cylinder cylinder)
 {
     return(GetArea(cylinder.BaseCircle) * cylinder.Height);
 }
Esempio n. 2
0
 public void AddTo(ref Cylinder prolongedCylinder)
 {
     prolongedCylinder.Radius += this.Radius;
     prolongedCylinder.Height += this.Height;
 }
Esempio n. 3
0
 static public float GetArea(Cylinder cylinder)
 {
     return(cylinder.Height * GetCircleLength(cylinder.Radius) + Cylinder.BASES_NUMBER * GetArea(cylinder.BaseCircle));
 }
Esempio n. 4
0
 public void CloneInsteadOf(out Cylinder insteadOf)
 {
     insteadOf = Clone( );
 }