oolite/tools/icosmesh/JAIcosTriangle.h
2009-11-20 14:49:24 +00:00

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