Android Guides | Samples

Android.Graphics.PointF Class

PointF holds two float coordinates

See Also: PointF

Syntax

[Android.Runtime.Register("android/graphics/PointF", DoNotGenerateAcw=true)]
public class PointF : Object, IParcelable, IDisposable

Remarks

PointF holds two float coordinates

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Graphics.PointF are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Parcelable interface methods
Equals(Single, Single) : Boolean
Returns true if the point's coordinates equal (x,y)
Length() : Single
Return the euclidian distance from (0,0) to the point
static
Length(Single, Single) : Single
Returns the euclidian distance from (0,0) to (x,y)
Negate()
Offset(Single, Single)
ReadFromParcel(Parcel)
Set the point's coordinates from the data stored in the specified parcel.
Set(PointF)
Set the point's x and y coordinates to the coordinates of p
Set(Single, Single)
Set the point's x and y coordinates
WriteToParcel(Parcel, ParcelableWriteFlags)
Write this point to the specified parcel.