Autor Beitrag
Jerk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Do 27.12.07 17:40 
Hat sich erledigt ich bin ein Depp...
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 27.12.07 19:23 
Auch gut :mrgreen:
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 27.12.07 21:01 
Was war das Problem und wie hast du es gelöst?
Vielleicht haben andere User die gleichen Schwierigkeiten. ;)

Grüße
Marc
Jerk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Do 27.12.07 21:21 
Naja habe einen Algorythmus zum drehen von Punkten im Raum um einen Punkt benutzt und mich gewundert weil nichts klappt weil ich davon ausgegangen bin, dass der Algo. um eine Achse rotieren lässt...

Kurze nebenfrage kann ich eine Procedur ungefähr so deklarieren?
ausblenden Delphi-Quelltext
1:
procedure RotateInit(Starmap: Array[1..1000,1..3] of integer);					


Oder eine Funktion in der art?
ausblenden Delphi-Quelltext
1:
function Collide(Starmap: Array[1..100,1..3] of integer):Fragments:array [1..100,1..3] of integer;					


Zuletzt bearbeitet von Jerk am Do 27.12.07 21:24, insgesamt 1-mal bearbeitet
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 27.12.07 21:24 
Für die, die sich hier hinverirrt haben: Ein weiteres 3D-Problem mit seiner Lösung. Der Titel ist an mein aktuelles Problem angepasst, aber wenn ihr weiterlest, seht ihr das gelöste Rotations-Problem.
Jerk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Do 27.12.07 21:33 
Hier mal meine Lösung:
Aufgerufen wird DoRotate
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Function Tform1.Rotate(a: Real; b: Real;deg: integer):Trealarray;
begin
  Result[1]:=cos(deg) * a + sin(deg) * b;
  Result[2]:=cos(deg) * b - sin(deg) * a;
{
Rotation um X-Achse: a=Y, b=Z
Rotation um Y-Achse: a=Z, b=X
Rotation um Z-Achse: a=X, b=Y
}

end;


Hab ich aus dem Link zusammengebaut, besser geht es imho nicht, Danke!