From e96f445c75f5d4ae1f141be9e06c4b4ba3b56806 Mon Sep 17 00:00:00 2001 From: alexb737 Date: Thu, 6 Oct 2022 10:46:18 +0200 Subject: [PATCH] =?UTF-8?q?definida=20interfaz=20para=20s=C3=B3lidos=20r?= =?UTF-8?q?=C3=ADgidos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Q01-Cálculos/IRigidBody.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Q01-Cálculos/IRigidBody.cs diff --git a/Q01-Cálculos/IRigidBody.cs b/Q01-Cálculos/IRigidBody.cs new file mode 100644 index 0000000..5d73846 --- /dev/null +++ b/Q01-Cálculos/IRigidBody.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; +using System.Threading.Tasks; + +namespace Q01_Cálculos +{ + /// + /// Definimos una interfaz para normalizar clases que representan un cuerpo rígido con masa + /// + public interface IRigidBody + { + public string Name { get; } + public float Mass { get; } + public Vector3 CenterOfMass { get; } + public Vector3 Weight{ get; } + + public int GetChildItemCount(bool Recursive); + string Summary(int pad = 0); + } +}