HE_Mesh  5.0.0
wblut.geom.WB_CoordinateMetric2D Interface Reference
+ Inheritance diagram for wblut.geom.WB_CoordinateMetric2D:

Public Member Functions

double getLength2D ()
 
double getSqLength2D ()
 
double getDistance2D (final WB_Coord p)
 
double getSqDistance2D (final WB_Coord p)
 
double getAngle (final WB_Coord p)
 
double getAngleNorm (final WB_Coord p)
 
double getHeading2D ()
 
WB_Coord getOrthoNormal2D ()
 
boolean isZero ()
 
boolean isCollinear2D (WB_Coord p, WB_Coord q)
 
boolean isParallel2D (WB_Coord p)
 
boolean isParallel2D (WB_Coord p, double tol)
 
boolean isParallelNorm2D (WB_Coord p)
 
boolean isParallelNorm2D (WB_Coord p, double tol)
 
boolean isOrthogonal2D (WB_Coord p)
 
boolean isOrthogonal2D (WB_Coord p, double tol)
 
boolean isOrthogonalNorm2D (WB_Coord p)
 
boolean isOrthogonalNorm2D (WB_Coord p, double tol)
 

Detailed Description

Interface for implementing metric operations on 2D coordinates.

None of the operators change the calling object.

Author
Frederik Vanhoutte

Member Function Documentation

double wblut.geom.WB_CoordinateMetric2D.getAngle ( final WB_Coord  p)

Angle between two vectors.

Parameters
p
Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

double wblut.geom.WB_CoordinateMetric2D.getAngleNorm ( final WB_Coord  p)

Angle between two normalized vectors.

Parameters
p
Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

double wblut.geom.WB_CoordinateMetric2D.getDistance2D ( final WB_Coord  p)

2D distance to coordinate

Parameters
p
Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

double wblut.geom.WB_CoordinateMetric2D.getHeading2D ( )

2D heading of vector.

Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

double wblut.geom.WB_CoordinateMetric2D.getLength2D ( )

Length of 2D coordinate.

Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

WB_Coord wblut.geom.WB_CoordinateMetric2D.getOrthoNormal2D ( )

Get 2D vector perpendicular and CCW to this one.

Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

double wblut.geom.WB_CoordinateMetric2D.getSqDistance2D ( final WB_Coord  p)

Square 2D distance to coordinate.

Parameters
p
Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

double wblut.geom.WB_CoordinateMetric2D.getSqLength2D ( )

Square length of 2D coordinate.

Returns

Implemented in wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.

boolean wblut.geom.WB_CoordinateMetric2D.isCollinear2D ( WB_Coord  p,
WB_Coord  q 
)

Is this point collinear with two other points?

Parameters
p
q
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonal2D ( WB_Coord  p)

Is this vector perpendicular to other vector?

Parameters
p
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonal2D ( WB_Coord  p,
double  tol 
)

Is this vector, within a given tolerance, perpendicular to other vector?

Parameters
p
tol
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonalNorm2D ( WB_Coord  p)

Is this normalized vector perpendicular to other normalized vector?

Parameters
p
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonalNorm2D ( WB_Coord  p,
double  tol 
)

Is this normalized vector, within a given tolerance, perpendicular to other normalized vector?

Parameters
p
tol
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isParallel2D ( WB_Coord  p)

Is this vector parallel with other vector?

Parameters
p
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isParallel2D ( WB_Coord  p,
double  tol 
)

Is this vector, within a given tolerance, parallel with other vector?

Parameters
p
tol
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isParallelNorm2D ( WB_Coord  p)

Is this normalized vector parallel with other normalized vector?

Parameters
p
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isParallelNorm2D ( WB_Coord  p,
double  tol 
)

Is this normalized vector, within a given tolerance, parallel with other normalized vector?

Parameters
p
tol
Returns
boolean wblut.geom.WB_CoordinateMetric2D.isZero ( )

Is this a degenerate vector?

Returns

Implemented in wblut.geom.WB_Vector, wblut.hemesh.HE_Vertex, wblut.geom.WB_Vector2D, and wblut.geom.WB_CoordinateMetric3D.


The documentation for this interface was generated from the following file: