<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!--
Copyright (c) 2006 UGS Corp.

All Rights Reserved.

This software and related documentation are proprietary to UGS Corp.
-->
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Point-Related Functions</title>
      <script language="javaScript">
        abridged="false";
        displayConditions=new Array();
      </script>
      <link type="text/css" href="../css/main_styles.css" rel="stylesheet">
   </head>
   <body class="bodydocs" onload="top.pageLoader()" bgcolor="#FFFFFF">
      <div class="title_topic4" id="xps10_pagetitle">Point-Related Functions</div>
      <hr noshade="true">
      <p class="para_topic">Point related functions deal with point coordinates and vectors.</p>
      <table border="0">
         <tr>
            <td valign="top" align="left"><img align="left" src="../graphics/note.gif" alt="Note" title="Note"></td>
            <td valign="bottom" align="left" width="100%">
               <div class="para_note">
                  <p class="para_note_body">  Point coordinate or vector arguments, such as pt or vector, are specified by a range of 3 cells (i.e., A1..A3).</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_topic">DELTAPT( distance, vector, pt )</p>
      <p class="para_topic">Offsets a point by a distance along a vector and returns the new point. new_pt = pt + (distance*vector)</p>
      <p class="para_topic">DIRPT( pt1, pt2 )</p>
      <p class="para_topic">Returns a unit vector direction from point 1 to point 2.</p>
      <p class="para_topic">DISTPERP( pt, line_pt, line_vec )</p>
      <p class="para_topic">Returns the perpendicular (shortest) distance from the point pt to the line defined by the point line_pt and the vector line_vec.</p>
      <p class="para_topic">DISTPROJ( pt1, pt2, vector1)</p>
      <p class="para_topic">Distance between two points in the plane defined by the normal vector1.</p>
      <p class="para_topic">DISTPT( pt1, pt2 )</p>
      <p class="para_topic">Returns the distance between two points.</p>
      <p class="para_topic">INTERVEC( pt1, vec1, pt2, vec2 )</p>
      <p class="para_topic">Returns the intersection point for two lines defined by a point and a vector. If the lines fail to intersect, a message is returned in the cell.</p>
      <p class="para_topic">ROTPT( angle, pt, vector )</p>
      <p class="para_topic">Rotates a point by an angle around a vector and returns the new point (effectively the combination of MTXROT and XFORMPT).</p>
      <p class="para_topic">XFORMPT(pt, matrix)</p>
      <p class="para_topic">Transforms a point with a matrix and returns the new point.</p>
      <div class="title_division">Matrix Functions</div>
      <p class="para_division">Matrix functions deal with 3x3 matrices, take a range of cells for input to a matrix function, and output 3x3 sets of cells as values of a matrix.</p>
      <table border="0">
         <tr>
            <td valign="top" align="left"><img align="left" src="../graphics/note.gif" alt="Note" title="Note"></td>
            <td valign="bottom" align="left" width="100%">
               <div class="para_note">
                  <p class="para_note_body">  Vector arguments for matrix functions, such as norm_vec, are specified by a 2-D range of cells (e.g. A1..C3).</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_division">MTXROT(angle, norm_vec)</p>
      <p class="para_division">Returns a matrix from the rotation by angle about a vector.</p>
      <div class="title_division">Expression-Related Functions</div>
      <p class="para_division">Expression-related functions return information about NX expressions. The left-hand side (LHS) of the equation is the parameter name of the expression. The right-hand side (RHS) of the equation is the expression string.</p>
      <table border="0">
         <tr>
            <td valign="top" align="left"><img align="left" src="../graphics/note.gif" alt="Note" title="Note"></td>
            <td valign="bottom" align="left" width="100%">
               <div class="para_note">
                  <p class="para_note_body">  Parameter names, such as parameter_name, are string arguments and may be specified by the string in double quotes, such as &quot;Height&quot;, or by a cell reference to that string.</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_division">UGEXPR( &quot;parameter_name&quot;)</p>
      <p class="para_division">Returns an expression string, given the parameter name of an NX expression. This can be an interpart expression if that part is loaded. If the part is not loaded, you will get an error message in the cell.</p>
      <p class="para_division">EXPRVAL( &quot;parameter_name&quot; )</p>
      <p class="para_division">Returns the value of an expression, given the name of an NX expression. This function also works for interpart expressions that are used in this part. </p>
   </body>
</html>