quakeforge/ruamoko/gatest/basisblade.h
Bill Currie c1c77bd64a [gatest] Add basic geometric algebra test
This is for developing methods of implementing geometric algebra and
eventually playing with it visually.
2023-05-19 00:34:05 +09:00

26 lines
661 B
Objective-C

#ifndef __basisblade_h
#define __basisblade_h
#include <Object.h>
@class Metric;
@interface BasisBlade : Object
{
unsigned mask;
double scale;
}
+(BasisBlade *) scalar:(double) scale;
+(BasisBlade *) zero;
+(BasisBlade *) basis:(unsigned) mask;
+(BasisBlade *) basis:(unsigned) mask scale:(double) scale;
-(BasisBlade *) product:(BasisBlade *) b isOuter:(int)outer metric:(Metric *) m;
-(BasisBlade *) outerProduct:(BasisBlade *) b;
-(BasisBlade *) geometricProduct:(BasisBlade *) b metric:(Metric *) m;
-(BasisBlade *) geometricProduct:(BasisBlade *) b;
-(int) grade;
-(unsigned) mask;
-(double) scale;
-(string) name;
@end
#endif//__basisblade_h