public override bool Raycast(Ray ray, out float t) { if (_raycastMode == Shape3DRaycastMode.Solid) { return(CircleMath.Raycast(ray, out t, _center, _radius, Normal, _epsilon)); } else { return(CircleMath.RaycastWire(ray, out t, _center, _radius, Normal, _epsilon)); } }
public override bool ContainsPoint(Vector2 point) { if (_ptContainMode == Shape2DPtContainMode.InsideArea) { return(CircleMath.Contains2DPoint(point, _center, _radius, _epsilon)); } else { return(CircleMath.Is2DPointOnBorder(point, _center, _radius, _epsilon)); } }
public List <Vector3> GetExtentPoints() { return(CircleMath.Calc3DExtentPoints(_center, _radius, _rotation)); }
public bool ContainsPoint(Vector3 point, bool checkOnPlane) { return(CircleMath.Contains3DPoint(point, checkOnPlane, _center, _radius, Normal, _epsilon)); }
public override bool RaycastWire(Ray ray, out float t) { return(CircleMath.RaycastWire(ray, out t, _center, _radius, Normal, _epsilon)); }
public List <Vector2> GetExtentPoints() { return(CircleMath.Calc2DExtentPoints(_center, _radius, _rotationDegrees)); }