Version

Geometry Class Members

The following tables list the members exposed by Geometry.

Public Fields
 NameDescription
Public FieldDegreeAsRadianThe constant used to convert degrees to radians.  
Public FieldRadianAsDegreeThe constant used to convert radians to degrees.  
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)AngleFromSlopeReturns the angle of a line with the given slope.  
Public Methodstatic (Shared in Visual Basic)AngularToCartesianOverloaded. Returns a point (XY) using the given radial coordinates (center, radius, angle).  
Public Methodstatic (Shared in Visual Basic)AngularToCartesianReverseOverloaded. Returns the angle of the given point, existing in a circle with the given center and radius.  
Public Methodstatic (Shared in Visual Basic)AverageOverloaded. Returns the average of the two points using the formula {(p1.X + p2.X) / 2, (p1.Y + p2.Y) / 2}.  
Public Methodstatic (Shared in Visual Basic)CenterOfOverloaded. Returns the center point of the given rectangle.  
Public Methodstatic (Shared in Visual Basic)ConstrainToSquareBoundsEnsures the square bounds for given rectangle.  
Public Methodstatic (Shared in Visual Basic)DegreeToRadianReturns the given degree, expressed in radians.  
Public Methodstatic (Shared in Visual Basic)DistanceReturns the distance between two points.  
Public Methodstatic (Shared in Visual Basic)EccentricityOverloaded. Returns the eccentricity of an ellipse with the given bounds.  
Public Methodstatic (Shared in Visual Basic)EllipsePointAlternateOverloaded. Alternate formula for finding a point on an ellipse.  
Public Methodstatic (Shared in Visual Basic)InflateInflates the given size by a multiplier.  
Public Methodstatic (Shared in Visual Basic)PercentOfBoundsOverloaded. Returns a rectangle which is a percentage of the given rectangle.  
Public Methodstatic (Shared in Visual Basic)PointOnEllipseOverloaded. Returns a point on the circumference of an ellipse at the given angle.  
Public Methodstatic (Shared in Visual Basic)PointOnLineReturns a point at a given percentage from a start point to an end point.  
Public Methodstatic (Shared in Visual Basic)RadianToDegreeReturns the given radian value, expressed in degrees.  
Public Methodstatic (Shared in Visual Basic)ResolvePixelBoundsOverloaded. Returns a rectangle expressed as a percentage of another rectangle.  
Public Methodstatic (Shared in Visual Basic)SimplifyAngleSimplifies the given angle to a value between 0 and 360.  
Public Methodstatic (Shared in Visual Basic)SlopeOverloaded. Returns the slope of a line which passes through two points.  
See Also