/// <summary> /// 是否包含点 /// </summary> /// <param name="point"></param> /// <returns></returns> public bool Contains(Vector3 point) { if (Orgin == point) { return(true); } return(Utility3D.IsSameDirection(Direction, point - Orgin)); }
/// <summary> /// 是否同向 /// </summary> /// <param name="ray"></param> /// <returns></returns> public bool IsSameDirection(Ray ray) { return(Utility3D.IsSameDirection(Direction, ray.Direction)); }