int planesphereintersect(vector plane_pos, vector plane_normal, vector sphere_pos, float sphere_radius, vector &intersect_pos, float &intersect_radius, float &intersect_distance)
sphere_posを中心とするsphere_radius半径の3D球と3Dポイントのplane_posを通過したplane_normal法線ベクトルの3D平面を指定すると、交差すれば1、交差しなければ0を返します。
交差平面上のintersect_posを中心とするintersect_radius半径の2D円が作成されます。
intersect radiusが0に設定された場合、これは単一点になります。
sphere_posとintersect_posとの距離は、交差がない時でも返されます。
| intersect |