mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-11 21:31:30 +00:00
c1c77bd64a
This is for developing methods of implementing geometric algebra and eventually playing with it visually.
16 lines
363 B
Objective-C
16 lines
363 B
Objective-C
#ifndef __metric_h
|
|
#define __metric_h
|
|
|
|
#include <Object.h>
|
|
|
|
@interface Metric : Object
|
|
{
|
|
unsigned plus; // mask of elements that square to +1
|
|
unsigned minus; // mask of elements that square to -1
|
|
unsigned zero; // mask of elements that square to 0
|
|
}
|
|
+(Metric *)R:(int)p, int m, int z;
|
|
-(double)apply:(unsigned) a, unsigned b;
|
|
@end
|
|
|
|
#endif//__metric_h
|