Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beginnings of multiple orientation support. Added auto-rotation of vi…
…ews based on a delegate callback. Made the center coordinate more robust for multiple orientations.
- Loading branch information
Zac White
committed
Oct 12, 2009
1 parent
41ae2ef
commit ee18939
Showing
8 changed files
with
278 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// ARVector.h | ||
// ARKitDemo | ||
// | ||
// Created by Zac White on 10/11/09. | ||
// Copyright 2009 Zac White. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
|
||
@interface ARVector : NSObject { | ||
double x; | ||
double y; | ||
double z; | ||
} | ||
|
||
@property double x; | ||
@property double y; | ||
@property double z; | ||
|
||
- (ARVector *)dotProductWithVector:(ARVector *)vector; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ARVector.m | ||
// ARKitDemo | ||
// | ||
// Created by Zac White on 10/11/09. | ||
// Copyright 2009 Zac White. All rights reserved. | ||
// | ||
|
||
#import "ARVector.h" | ||
|
||
@implementation ARVector | ||
|
||
@synthesize x, y, z; | ||
|
||
- (double)dotProductWithVector:(ARVector *)vector { | ||
return vector.x * self.x + vector.y * self.y + vector.z * self.z; | ||
} | ||
|
||
- (ARVector *)crossProductWithVector:(ARVector *)vector { | ||
|
||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.