29 lines
586 B
C
29 lines
586 B
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
|