Last change
on this file was
80,
checked in by Sam Hocevar, 12 years ago
|
- Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.
|
-
Property svn:keywords set to
Id
|
File size:
786 bytes
|
Line | |
---|
1 | /**********************************************************************
|
---|
2 | *<
|
---|
3 | FILE: decomp.h
|
---|
4 |
|
---|
5 | DESCRIPTION:
|
---|
6 |
|
---|
7 | CREATED BY: Dan Silva
|
---|
8 |
|
---|
9 | HISTORY:
|
---|
10 |
|
---|
11 | *> Copyright (c) 1994, All Rights Reserved.
|
---|
12 | **********************************************************************/
|
---|
13 |
|
---|
14 | #ifndef _H_Decompose
|
---|
15 | #define _H_Decompose
|
---|
16 |
|
---|
17 | typedef struct {
|
---|
18 | Point3 t; /* Translation components */
|
---|
19 | Quat q; /* Essential rotation */
|
---|
20 | Quat u; /* Stretch rotation */
|
---|
21 | Point3 k; /* Stretch factors */
|
---|
22 | float f; /* Sign of determinant */
|
---|
23 | } AffineParts;
|
---|
24 |
|
---|
25 | CoreExport void SpectralDecomp(Matrix3 m, Point3 &s, Quat& q);
|
---|
26 | CoreExport void decomp_affine(Matrix3 A, AffineParts *parts);
|
---|
27 | CoreExport void invert_affine(AffineParts *parts, AffineParts *inverse);
|
---|
28 | #endif
|
---|
29 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.