c8445aeb9e
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2767 127b21dd-08f5-0310-b4b7-95ae10353056
29 lines
586 B
Objective-C
29 lines
586 B
Objective-C
//
|
|
// JAIcosTriangle.h
|
|
// icosmesh
|
|
//
|
|
// Created by Jens Ayton on 2009-11-18.
|
|
// Copyright 2009 Jens Ayton. All rights reserved.
|
|
//
|
|
|
|
#import "icosmesh.h"
|
|
|
|
|
|
@interface JAIcosTriangle: NSObject
|
|
{
|
|
@private
|
|
Vertex _vertices[3];
|
|
}
|
|
|
|
// Note: order is not guaranteed to be maintained.
|
|
+ (id) triangleWithVectorA:(Vector)a b:(Vector)b c:(Vector)c;
|
|
- (id) initWithVectorA:(Vector)a b:(Vector)b c:(Vector)c;
|
|
|
|
- (NSArray *) subdivide; // A list of four JAIcosTriangles.
|
|
|
|
@property (readonly) Vertex vertexA;
|
|
@property (readonly) Vertex vertexB;
|
|
@property (readonly) Vertex vertexC;
|
|
|
|
@end
|