Esempio n. 1
0
 public CameraEntry(CAME.CAMEEntry entry)
 {
     TypeID         = entry.Type;
     Next           = entry.Next;
     VideoNext      = entry.VideoNext;
     RouteID        = entry.RouteID;
     PointSpeed     = entry.PointSpeed;
     FOVSpeed       = entry.FOVSpeed;
     ViewpointSpeed = entry.ViewpointSpeed;
     StartFlag      = entry.StartFlag;
     VideoFlag      = entry.VideoFlag;
     PositionX      = entry.Position.X;
     PositionY      = entry.Position.Y;
     PositionZ      = entry.Position.Z;
     RotationX      = entry.Rotation.X;
     RotationY      = entry.Rotation.Y;
     RotationZ      = entry.Rotation.Z;
     FOVBegin       = entry.FOVBegin;
     FOVEnd         = entry.FOVEnd;
     Viewpoint1X    = entry.Viewpoint1.X;
     Viewpoint1Y    = entry.Viewpoint1.Y;
     Viewpoint1Z    = entry.Viewpoint1.Z;
     Viewpoint2X    = entry.Viewpoint2.X;
     Viewpoint2Y    = entry.Viewpoint2.Y;
     Viewpoint2Z    = entry.Viewpoint2.Z;
     DurationRaw    = entry.Duration;
 }
Esempio n. 2
0
 public CAME.CAMEEntry ToCAMEEntry()
 {
     CAME.CAMEEntry entry = new CAME.CAMEEntry();
     entry.Type           = TypeID;
     entry.Next           = Next;
     entry.VideoNext      = VideoNext;
     entry.StartFlag      = StartFlag;
     entry.VideoFlag      = VideoFlag;
     entry.RouteID        = RouteID;
     entry.PointSpeed     = PointSpeed;
     entry.FOVSpeed       = FOVSpeed;
     entry.ViewpointSpeed = ViewpointSpeed;
     entry.Position       = new Vector3(PositionX, PositionY, PositionZ);
     entry.Rotation       = new Vector3(RotationX, RotationY, RotationZ);
     entry.FOVBegin       = FOVBegin;
     entry.FOVEnd         = FOVEnd;
     entry.Viewpoint1     = new Vector3(Viewpoint1X, Viewpoint1Y, Viewpoint1Z);
     entry.Viewpoint2     = new Vector3(Viewpoint2X, Viewpoint2Y, Viewpoint2Z);
     entry.Duration       = DurationRaw;
     return(entry);
 }