public override string ToString() { var boxes = string.Join("\r\n", Boxes.Select(b => b.ToString()).ToArray()); return(string.Format("OrgId: {0}, Inn: {1}, Kpp: {2}, FullName: {3}, ShortName: {4}, Boxes:\r\n {5}, " + "Ogrn: {6}, FnsParticipantId: {7}, Address: {8}, FnsRegistrationDate: {9}, " + "Departments: {10}, IfnsCode: {11}, IsPilot: {12}, IsActive: {13}, IsTest: {14}, " + "IsBranch: {15}, IsRoaming: {16}, IsEmployee: {17}, InvitationCount: {18}, " + "SearchCount: {19}, Sociability: {20}, LiquidationDate: {21}, CertificateOfRegistryInfo: {22}", OrgId, Inn, Kpp, FullName, ShortName, boxes, Ogrn, FnsParticipantId, Address, FnsRegistrationDate, Departments, IfnsCode, IsPilot, IsActive, IsTest, IsBranch, IsRoaming, IsEmployee, InvitationCount, SearchCount, Sociability, LiquidationDate, CertificateOfRegistryInfo)); }
private BoundingBox[] GetBoxes(Vector3 position) { return(Boxes.Select(x => new BoundingBox(position + x.Min, position + x.Max)).ToArray()); }
public override string ToString() { var boxes = string.Join("\r\n", Boxes.Select(b => b.ToString()).ToArray()); return(string.Format("OrgId: {0}, Inn: {1}, Kpp: {2}, FullName: {3}, ShortName: {4}, Boxes:\r\n{5}, Ogrn: {6}, IsPilot: {7}, IsActive: {8}, IsTest: {9}", OrgId, Inn, Kpp, FullName, ShortName, boxes, Ogrn, IsPilot, IsActive, IsTest)); }
private Rect2D CalculateRect() => Boxes.Select(i => i.Rect).Concat(Lines.Select(i => i.Rect)).Union();
/// <inheritdoc /> public override IEnumerable <BoundingBox> GetBoundingBoxes(Vector3 blockPos) { return(Boxes.Select(x => x.OffsetBy(blockPos))); }