예제 #1
0
파일: Ray.cs 프로젝트: swaphack/effect
        /// <summary>
        /// 是否包含点
        /// </summary>
        /// <param name="point"></param>
        /// <returns></returns>
        public bool Contains(Vector3 point)
        {
            if (Orgin == point)
            {
                return(true);
            }

            return(Utility3D.IsSameDirection(Direction, point - Orgin));
        }
예제 #2
0
파일: Ray.cs 프로젝트: swaphack/effect
 /// <summary>
 /// 是否同向
 /// </summary>
 /// <param name="ray"></param>
 /// <returns></returns>
 public bool IsSameDirection(Ray ray)
 {
     return(Utility3D.IsSameDirection(Direction, ray.Direction));
 }