public class Vector
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Vector> |
CREATOR |
| Constructor and Description |
|---|
Vector() |
Vector(double x,
double y,
double z) |
| Modifier and Type | Method and Description |
|---|---|
double |
abs() |
Vector |
add(Vector vector) |
Vector |
crossProduct(Vector vector) |
int |
describeContents() |
double |
dotProduct(Vector vector) |
Vector |
multiply(double value) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Vector> CREATOR
public double abs()
public Vector multiply(double value)
public double dotProduct(Vector vector)
public java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable