IT. Expert System.

Android Reference

PointF


android.graphics

Class PointF

  • All Implemented Interfaces:
    Parcelable


    public class PointF
    extends Object
    implements Parcelable
    PointF holds two float coordinates
    • Constructor Detail

      • PointF

        public PointF()
      • PointF

        public PointF(float x,
              float y)
      • PointF

        public PointF(Point p)
    • Method Detail

      • set

        public final void set(float x,
               float y)
        Set the point's x and y coordinates
      • set

        public final void set(PointF p)
        Set the point's x and y coordinates to the coordinates of p
      • negate

        public final void negate()
      • offset

        public final void offset(float dx,
                  float dy)
      • equals

        public final boolean equals(float x,
                     float y)
        Returns true if the point's coordinates equal (x,y)
      • length

        public final float length()
        Return the euclidian distance from (0,0) to the point
      • length

        public static float length(float x,
                   float y)
        Returns the euclidian distance from (0,0) to (x,y)
      • describeContents

        public int describeContents()
        Parcelable interface methods
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.
      • writeToParcel

        public void writeToParcel(Parcel out,
                         int flags)
        Write this point to the specified parcel. To restore a point from a parcel, use readFromParcel()
        Specified by:
        writeToParcel in interface Parcelable
        Parameters:
        out - The parcel to write the point's coordinates into
        flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
      • readFromParcel

        public void readFromParcel(Parcel in)
        Set the point's coordinates from the data stored in the specified parcel. To write a point to a parcel, call writeToParcel().
        Parameters:
        in - The parcel to read the point's coordinates from


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 387 / 159175495. Delta: 0.03630 с