The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

PointMathExtensions Class

Summary

Extension methods which extend the point mathematics.
Namespace
Splat
Base Types
  • object
graph BT Type-->Base0["object"] Type["PointMathExtensions"] class Type type-node

Syntax

public static class PointMathExtensions

Methods

Name Value Summary
AngleInDegrees(PointF) float
Calculates the angle in degrees of a PointF.
static
DistanceTo(PointF, PointF) float
Calculates the distance between two points.
static
DotProduct(PointF, PointF) float
Calculates the Dot product of two points.
static
Floor(Point) PointF
Floor the specified point (i.e. round it to integer values).
static
Length(PointF) float
Calculates the magnitude of a point from (0,0).
static
Normalize(PointF) PointF
Normalize the specified PointF (i.e. makes its magnitude = 1.0f).
static
ProjectAlong(PointF, PointF) PointF
Projects a PointF along a specified direction.
static
ProjectAlongAngle(PointF, float) PointF
Projects a PointF along a specified angle.
static
ScaledBy(PointF, float) PointF
Scales a PointF by a scalar factor.
static
WithinEpsilonOf(PointF, PointF, float) bool
Determines whether two points are within 'epsilon' of each other.
static

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.