# Point

## Object Hierarchy:

## Description:

[ CCode ( cname = "graphene_point_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "graphene_point_get_type ()" ) ]

[ Version ( since = "1.0" ) ]

public struct **Point**

A point with two coordinates.

## Content:

### Static methods:

### Methods:

- public float
**distance** (Point b, out float d_x, out float d_y)
Computes the distance between this and
`b`

.

- public float
**distance_squared** (Point b)
Computes the squared distance between this
and `b`

.

- public bool
**equal** (Point b)
Checks if the two points this and ```
b
```

point to the same coordinates.

- public unowned Point?
**init** (float x, float y)
Initializes this to the given ```
x
```

and `y`

coordinates.

- public unowned Point?
**init_from_point** (Point src)
Initializes this with the same coordinates
of `src`

.

- public unowned Point?
**init_from_vec2** (Vec2 src)
Initializes this with the coordinates
inside the given Vec2.
- public Point
**interpolate** (Point b, double factor)
Linearly interpolates the coordinates of this
and `b`

using the given `factor`

.

- public bool
**near** (Point b, float epsilon)
Checks whether the two points this and
`b`

are within the threshold of `epsilon`

.

- public Vec2
**to_vec2** ()
Stores the coordinates of the given Point into a
Vec2.

### Fields: