MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.PolylineProjectionResult2 Class Reference
Inheritance diagram for meshlib.PolylineProjectionResult2:

Public Member Functions

 PolylineProjectionResult2 (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 PolylineProjectionResult2 ()
 PolylineProjectionResult2 (meshlib.UndirectedEdgeId line, meshlib.Vector2f point, float distSq)
 PolylineProjectionResult2 (meshlib.PolylineProjectionResult2 _other)
boolean convertTo_bool ()
meshlib.PolylineProjectionResult2 assignFromAnother (meshlib.PolylineProjectionResult2 _other)
boolean valid ()
meshlib.UndirectedEdgeId line ()
void setLine (meshlib.UndirectedEdgeId value)
meshlib.Vector2f point ()
void setPoint (meshlib.Vector2f value)
float distSq ()
void setDistSq (float value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Generated from class MR::PolylineProjectionResult2.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ PolylineProjectionResult2() [1/4]

meshlib.PolylineProjectionResult2.PolylineProjectionResult2 ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ PolylineProjectionResult2() [2/4]

meshlib.PolylineProjectionResult2.PolylineProjectionResult2 ( )

Constructs an empty (default-constructed) instance.

Calls MR_PolylineProjectionResult2_DefaultConstruct().

◆ PolylineProjectionResult2() [3/4]

meshlib.PolylineProjectionResult2.PolylineProjectionResult2 ( meshlib.UndirectedEdgeId line,
meshlib.Vector2f point,
float distSq )

Constructs MR::PolylineProjectionResult2 elementwise. The reference to the parameter line might be preserved in the constructed object. The reference to the parameter point might be preserved in the constructed object.

Calls MR_PolylineProjectionResult2_ConstructFrom().

◆ PolylineProjectionResult2() [4/4]

meshlib.PolylineProjectionResult2.PolylineProjectionResult2 ( meshlib.PolylineProjectionResult2 _other)

Generated from constructor MR::PolylineProjectionResult2::PolylineProjectionResult2. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_PolylineProjectionResult2_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.PolylineProjectionResult2 meshlib.PolylineProjectionResult2.assignFromAnother ( meshlib.PolylineProjectionResult2 _other)

Generated from method MR::PolylineProjectionResult2::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_PolylineProjectionResult2_AssignFromAnother().

◆ convertTo_bool()

boolean meshlib.PolylineProjectionResult2.convertTo_bool ( )

Generated from conversion operator MR::PolylineProjectionResult2::operator bool.

Calls MR_PolylineProjectionResult2_ConvertTo_bool().

◆ distSq()

float meshlib.PolylineProjectionResult2.distSq ( )

squared distance from pt to proj Returns a pointer to a member variable of class MR::PolylineProjectionResult2 named distSq. The reference to this object might be preserved as the return value.

Calls MR_PolylineProjectionResult2_Get_distSq().

◆ line()

meshlib.UndirectedEdgeId meshlib.PolylineProjectionResult2.line ( )

polyline's edge containing the closest point Returns a pointer to a member variable of class MR::PolylineProjectionResult2 named line. The reference to this object might be preserved as the return value.

Calls MR_PolylineProjectionResult2_Get_line().

◆ point()

meshlib.Vector2f meshlib.PolylineProjectionResult2.point ( )

closest point on polyline, transformed by xf if it is given Returns a pointer to a member variable of class MR::PolylineProjectionResult2 named point. The reference to this object might be preserved as the return value.

Calls MR_PolylineProjectionResult2_Get_point().

◆ setDistSq()

void meshlib.PolylineProjectionResult2.setDistSq ( float value)

squared distance from pt to proj Modifies a member variable of class MR::PolylineProjectionResult2 named distSq.

Calls MR_PolylineProjectionResult2_Set_distSq().

◆ setLine()

void meshlib.PolylineProjectionResult2.setLine ( meshlib.UndirectedEdgeId value)

polyline's edge containing the closest point Modifies a member variable of class MR::PolylineProjectionResult2 named line. The reference to the parameter value might be preserved in this object in element line.

Calls MR_PolylineProjectionResult2_Set_line().

◆ setPoint()

void meshlib.PolylineProjectionResult2.setPoint ( meshlib.Vector2f value)

closest point on polyline, transformed by xf if it is given Modifies a member variable of class MR::PolylineProjectionResult2 named point. The reference to the parameter value might be preserved in this object in element point.

Calls MR_PolylineProjectionResult2_Set_point().

◆ valid()

boolean meshlib.PolylineProjectionResult2.valid ( )

check for validity, otherwise the projection was not found Generated from method MR::PolylineProjectionResult2::valid.

Calls MR_PolylineProjectionResult2_valid().


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