home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir08 / f012290.re_ / f012290.re
Text File  |  1996-04-02  |  3KB  |  170 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (c) 1985-93;  Bentley Systems, Inc., All rights reserved.    |
  4. |                                    |
  5. | "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley    |
  6. |  Systems, Inc.                            |
  7. |                                    |
  8. |  Limited permission is hereby granted to reproduce and modify this    |
  9. |  copyrighted material provided that the resulting code is used only     |
  10. |  in conjunction with Bentley Systems products under the terms of the    |
  11. |  license agreement provided therein, and that this notice is retained    |
  12. |  in its entirety in any such reproduction or modification.        |
  13. |                                    |
  14. +----------------------------------------------------------------------*/
  15. /*----------------------------------------------------------------------+
  16. |                                    |
  17. |   $Workfile:   mstmatrx.fdf  $
  18. |   $Revision:   6.3  $
  19. |          $Date:   16 Jun 1995 15:22:34  $
  20. |                                    |
  21. +----------------------------------------------------------------------*/
  22. #if !defined (__mstmatrxFDF__)
  23. #define __mstmatrxFDF__
  24.  
  25. /*----------------------------------------------------------------------+
  26. |                                    |
  27. |   Header File Dependencies                        |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30.  
  31. #if !defined (__dloadlibH__)
  32. #include "dloadlib.h"
  33. #endif
  34.  
  35. #if !defined (__mdlH__)
  36. #include "mdl.h"
  37. #endif
  38.  
  39. #if !defined (__mselemsH__)
  40. #include "mselems.h"
  41. #endif
  42.  
  43. /*======================================================================+
  44. |                                    |
  45. |   Function Definitions                        |
  46. |                                    |
  47. +======================================================================*/
  48.  
  49. void    mdlTMatrix_fromRMatrix
  50. (
  51. Transform   *out,
  52. RotMatrix   *tMatrix
  53. );
  54.  
  55. void    mdlTMatrix_getIdentity
  56. (
  57. Transform   *t
  58. );
  59.  
  60. void    mdlTMatrix_getTranslation
  61. (
  62. Dpoint3d    *translation,
  63. Transform   *in
  64. );
  65.  
  66. int    mdlTMatrix_masterToReference
  67. (
  68. Transform   *trans,
  69. int        slot
  70. );
  71.  
  72. void    mdlTMatrix_multiply
  73. (
  74. Transform        *out,
  75. Transform        *t1,
  76. Transform        *t2
  77. );
  78.  
  79. int    mdlTMatrix_referenceToMaster
  80. (
  81. Transform   *trans,
  82. int        slot
  83. );
  84.  
  85. void    mdlTMatrix_rotateByAngles
  86. (
  87. Transform   *outTrans,
  88. Transform   *inTrans,
  89. double        xrot,
  90. double        yrot,
  91. double        zrot
  92. );
  93.  
  94. void    mdlTMatrix_rotateByRMatrix
  95. (
  96. Transform    *outTrans,
  97. Transform    *inTrans,
  98. RotMatrix    *rotTrans
  99. );
  100.  
  101. void    mdlTMatrix_rotateScalePoint
  102. (
  103. Dpoint3d        *r,
  104. Transform       *t
  105. );
  106.  
  107. void    mdlTMatrix_scale
  108. (
  109. Transform   *outTrans,
  110. Transform   *inTrans,
  111. double        xScale,
  112. double        yScale,
  113. double        zScale
  114. );
  115.  
  116. void    mdlTMatrix_setOrigin
  117. (
  118. Transform   *out,
  119. Dpoint3d    *origin
  120. );
  121.  
  122. void    mdlTMatrix_setTranslation
  123. (
  124. Transform   *out,
  125. Dpoint3d    *translation
  126. );
  127.  
  128. void    mdlTMatrix_transformPoint
  129. (
  130. Dpoint3d    *r,
  131. Transform   *t
  132. );
  133.  
  134. void    mdlTMatrix_transformPointArray
  135. (
  136. Dpoint3d    *pnts,
  137. Transform   *trans,
  138. int        npnts
  139. );
  140.  
  141. void    mdlTMatrix_transformRange
  142. (
  143. Dpoint3d    *low, 
  144. Dpoint3d    *high,
  145. Transform   *trans
  146. );
  147.  
  148. void    mdlTMatrix_translate
  149. (
  150. Transform   *outTrans,
  151. Transform   *inTrans,
  152. double        x,
  153. double        y,
  154. double        z
  155. );
  156.  
  157. void    mdlTMatrix_transpose
  158. (
  159. Transform    *out,
  160. Transform    *in
  161. );
  162.  
  163. int    mdlTMatrix_getInverse
  164. (
  165. Transform    *outTMatrix,
  166. Transform    *inTMatrix
  167. );
  168.  
  169. #endif
  170.