The compass is an adjustable v shaped tool used often in geometry to construct a perfect circle. This tool is often paired with other geometry tools such as protractors.
You're probably thinking of a drafting compass (as opposed to a navigational compass), the device with two ends on a hinged angle, one end having a spike, the other end having a sleeve for a pen or pencil.