Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Official government website icon

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

icon-https

Secure .gov websites use HTTPS
A lock ( Lock Locked padlock icon )or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

NIH: National Institute of Diabetes and Digestive and Kidney Diseases NIH: National Institute of Diabetes and Digestive and Kidney Diseases

  next up previous contents index  Xplor-NIH home Documentation

Next: 33 Matrices Up: X-PLOR Language Previous: Numbers and Strings


Three-dimensional Vectors

The 3d-vector construct allows one to specify a three-dimensional real vector. The construct is also used to specify a 3$\times $3 matrix by entering one row at a time (see Section 2.4).
$<$3d-vector$>$:==
( $<$real$>$ $<$real$>$ $<$real$>$ )
specifies the vector explicitly by using the x,y,z components.
(
[TAIL=$<$selection$>$] [HEAD=$<$selection$>$] ) defines the tail or the head of the vector as the center of mass of the specified atom selections using the mass atom property (Section 2.16) and the main coordinate set x,y,z (Section 6.1). If HEAD is not specified, it defaults to (0,0,0); similarly for TAIL.



Xplor-NIH 2025-03-21
  • Privacy Policy
  • Freedom of Information Act
  • Accessibility
  • Disclaimers
  • Copyright
  • Vulnerability Disclosure Policy
  • U.S. Department of Health and Human Services
  • National Institutes of Health