# int Obj::DistTo(Obj)

[Family: Obj](/imperivm/en/CKS/familias/obj/)

## Exact signature

```text
int Obj::DistTo(Obj)
```

## Description

Returns the distance between the edges of two objects. The result retains its sign; the distance unit is not specified here.

## Parameters and return type

**Return type:** `int`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `Obj` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`int Obj::DistTo(point)`](/imperivm/en/CKS/reference/api-270dd046381b0c/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-11442e3afeb00b.md)
- [JSON](/imperivm/CKS/api/entries/api-11442e3afeb00b?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
