public Entity(CoordinateSystem coordinateSystem=null, string name="") { ID = NextID++; CoordinateSystem = coordinateSystem ?? CoordinateSystem.Default; Name = name.Length > 0 ? name : String.Format("Entity #{0}", ID); }
public Camera(CoordinateSystem coordinateSystem=null, string name="") : base(coordinateSystem, name) { }
public CoordinateSystem ToLocal(CoordinateSystem c) { return new CoordinateSystem(c.Rotation * Rotation.Conjugate(), ToLocal(c.Origin)); }
public PhysicalEntity(Mesh mesh, Material material, CoordinateSystem coordinateSystem=null, string name="") : base(coordinateSystem, name) { Mesh = mesh; Material = material; }
public CoordinateSystem ToGlobal(CoordinateSystem c) { return new CoordinateSystem(Rotation * c.Rotation, ToGlobal(c.Origin)); }