mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
c1c77bd64a
This is for developing methods of implementing geometric algebra and eventually playing with it visually.
26 lines
661 B
Objective-C
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
|