# Vec3.InRadius

bool InRadius(Vec3 pt, float radius)

Vec3 pt | The point to check against. |

float radius | The distance to check against. |

RETURNS: bool | True if the points are within radius of eachother, false not. |

Checks if a point is within a certain radius of this one. This is an easily readable shorthand of the squared distance check.

Vec3 a | The first point. |

Vec3 b | And the second point! |

float radius | The distance to check against. |

RETURNS: bool | True if a and b are within radius of eachother, false not. |

Checks if two points are within a certain radius of eachother. This is an easily readable shorthand of the squared distance check.

Found an issue with these docs, or have some additional questions? Create an Issue on Github!