示例#1
0
 /// <summary>
 /// Get the angle of rotation from this vertex to another
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public float getAngleOfRotationTo(Vertex other)
 {
     return((float)Mathy.getAngleOfRotation(x, y, other.x, other.y));
 }
示例#2
0
        /* End comparator functions */

        /// <summary>
        /// Euclidean distance between two Cartesian coordiates
        /// </summary>
        /// <param name="other">distant vertex</param>
        /// <returns>distance</returns>
        public double getDistanceTo(Vertex other)
        {
            return(Mathy.getDistanceBetween(x, y, other.x, other.y));
        }