public class ApsPoint extends Object
ApsPoint class
| Constructor and Description |
|---|
ApsPoint()
Initializes a new instance of the
ApsPoint class. |
ApsPoint(ApsPoint point) |
ApsPoint(double x,
double y)
Initializes a new instance of the
ApsPoint class. |
ApsPoint(double x,
double y,
double z)
Initializes a new instance of the
ApsPoint class. |
| Modifier and Type | Method and Description |
|---|---|
void |
CloneTo(ApsPoint that) |
static ApsPoint |
crossProduct(ApsPoint point1,
ApsPoint point2)
Calculates the cross product.
|
static ApsPoint |
crossProductNN(ApsPoint point1,
ApsPoint point2)
Calculates the non-normalized cross product.
|
static double |
dotProduct(ApsPoint point1,
ApsPoint point2)
Calculates the dot product of two points.
|
boolean |
equals(Object obj)
Determines whether the specified is equal to this instance.
|
static ApsPoint[] |
fromPointFsArray(PointF[] points)
To the points list.
|
static ApsPoint |
getEmpty()
The empty
|
double |
getX()
Gets or sets the x.
|
double |
getY()
Gets or sets the y.
|
double |
getZ()
Gets or sets the z.
|
int |
hashCode()
Returns a hash code for this instance.
|
boolean |
isEmpty()
Gets a value indicating whether this instance is empty.
|
static double |
length(ApsPoint point)
Calculates the length of point as vector.
|
static ApsPoint |
normalize(ApsPoint point)
Normalizes the vector.
|
static ApsPoint |
op_Addition(ApsPoint point1,
ApsPoint point2)
Gets the sum of two points.
|
static ApsPoint |
op_Division(ApsPoint point1,
double d)
Divides all coordinates by number.
|
static ApsPoint |
op_Multiply(ApsPoint point1,
double d)
Multiplies all coordinates by number.
|
static ApsPoint |
op_Subtraction(ApsPoint point1,
ApsPoint point2)
Gets the difference between points.
|
void |
setX(double value)
Gets or sets the x.
|
void |
setY(double value)
Gets or sets the y.
|
void |
setZ(double value)
Gets or sets the z.
|
static ApsPoint |
to_ApsPoint(PointF pointF)
Performs an explicit conversion from
PointF to ApsPoint. |
PointF |
toPointF()
To the point f.
|
public ApsPoint()
Initializes a new instance of the ApsPoint class.
public ApsPoint(double x,
double y)
Initializes a new instance of the ApsPoint class.
x - The x.y - The y.public ApsPoint(double x,
double y,
double z)
Initializes a new instance of the ApsPoint class.
x - The x.y - The y.z - The z.public ApsPoint(ApsPoint point)
public static final ApsPoint getEmpty()
The empty
public final double getX()
Gets or sets the x.
public final void setX(double value)
Gets or sets the x.
value - The x.public final double getY()
Gets or sets the y.
public final void setY(double value)
Gets or sets the y.
value - The y.public final double getZ()
Gets or sets the z.
public final void setZ(double value)
Gets or sets the z.
value - The z.public final boolean isEmpty()
Gets a value indicating whether this instance is empty.
true if this instance is empty; otherwise, false.public static ApsPoint[] fromPointFsArray(PointF[] points)
To the points list.
points - The points.public final PointF toPointF()
To the point f.
public static ApsPoint to_ApsPoint(PointF pointF)
Performs an explicit conversion from PointF to ApsPoint.
pointF - The point f.public boolean equals(Object obj)
Determines whether the specified is equal to this instance.
public void CloneTo(ApsPoint that)
public int hashCode()
Returns a hash code for this instance.
public static ApsPoint op_Subtraction(ApsPoint point1, ApsPoint point2)
Gets the difference between points.
point1 - First points.point2 - Second point.public static ApsPoint op_Division(ApsPoint point1, double d)
Divides all coordinates by number.
point1 - Point to process.d - Number.public static ApsPoint op_Multiply(ApsPoint point1, double d)
Multiplies all coordinates by number.
point1 - Point to process.d - Number.public static ApsPoint op_Addition(ApsPoint point1, ApsPoint point2)
Gets the sum of two points.
point1 - First point.point2 - Second point.public static ApsPoint crossProduct(ApsPoint point1, ApsPoint point2)
Calculates the cross product.
point1 - First point.point2 - Second point.public static ApsPoint crossProductNN(ApsPoint point1, ApsPoint point2)
Calculates the non-normalized cross product.
point1 - First point.point2 - Second point.public static double dotProduct(ApsPoint point1, ApsPoint point2)
Calculates the dot product of two points.
point1 - First point.point2 - Second point.public static double length(ApsPoint point)
Calculates the length of point as vector.
point - Point.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.