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

Public Member Functions

 Line2f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Line2f ()
 Line2f (meshlib.Line2f _other)
 Line2f (meshlib.Vector2f p, meshlib.Vector2f d)
meshlib.Line2f assignFromAnother (meshlib.Line2f _other)
meshlib.Vector2f call (float param)
float distanceSq (meshlib.Vector2f x)
meshlib.Line2f opSub ()
meshlib.Line2f opAdd ()
meshlib.Line2f normalized ()
float projectionParam (meshlib.Vector2f x)
meshlib.Vector2f project (meshlib.Vector2f x)
meshlib.Vector2f p ()
void setP (meshlib.Vector2f value)
meshlib.Vector2f d ()
void setD (meshlib.Vector2f 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

2- or 3-dimensional line: cross( x - p, d ) = 0 Generated from class MR::Line2f.

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

Constructor & Destructor Documentation

◆ Line2f() [1/4]

meshlib.Line2f.Line2f ( 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.

◆ Line2f() [2/4]

meshlib.Line2f.Line2f ( )

Constructs an empty (default-constructed) instance.

Calls MR_Line2f_DefaultConstruct().

◆ Line2f() [3/4]

meshlib.Line2f.Line2f ( meshlib.Line2f _other)

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

Calls MR_Line2f_ConstructFromAnother().

◆ Line2f() [4/4]

meshlib.Line2f.Line2f ( meshlib.Vector2f p,
meshlib.Vector2f d )

Generated from constructor MR::Line2f::Line2f. The reference to the parameter p might be preserved in the constructed object. The reference to the parameter d might be preserved in the constructed object.

Calls MR_Line2f_Construct().

Member Function Documentation

◆ assignFromAnother()

meshlib.Line2f meshlib.Line2f.assignFromAnother ( meshlib.Line2f _other)

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

Calls MR_Line2f_AssignFromAnother().

◆ call()

meshlib.Vector2f meshlib.Line2f.call ( float param)

returns point on the line, where param=0 returns p and param=1 returns p+d Generated from method MR::Line2f::operator().

Calls MR_Line2f_call().

◆ d()

meshlib.Vector2f meshlib.Line2f.d ( )

Returns a pointer to a member variable of class MR::Line2f named d. The reference to this object might be preserved as the return value.

Calls MR_Line2f_Get_d().

◆ distanceSq()

float meshlib.Line2f.distanceSq ( meshlib.Vector2f x)

returns squared distance from given point to this line Generated from method MR::Line2f::distanceSq.

Calls MR_Line2f_distanceSq().

◆ normalized()

meshlib.Line2f meshlib.Line2f.normalized ( )

returns same line represented with unit d-vector Generated from method MR::Line2f::normalized.

Calls MR_Line2f_normalized().

◆ opAdd()

meshlib.Line2f meshlib.Line2f.opAdd ( )

returns same representation Generated from method MR::Line2f::operator+.

Calls MR_pos_MR_Line2f().

◆ opSub()

meshlib.Line2f meshlib.Line2f.opSub ( )

returns same line represented with flipped direction of d-vector Generated from method MR::Line2f::operator-.

Calls MR_neg_MR_Line2f().

◆ p()

meshlib.Vector2f meshlib.Line2f.p ( )

Returns a pointer to a member variable of class MR::Line2f named p. The reference to this object might be preserved as the return value.

Calls MR_Line2f_Get_p().

◆ project()

meshlib.Vector2f meshlib.Line2f.project ( meshlib.Vector2f x)

finds the closest point to the given one on this line Generated from method MR::Line2f::project.

Calls MR_Line2f_project().

◆ projectionParam()

float meshlib.Line2f.projectionParam ( meshlib.Vector2f x)

finds the parameter of the closest point to the given one on this line Generated from method MR::Line2f::projectionParam.

Calls MR_Line2f_projectionParam().

◆ setD()

void meshlib.Line2f.setD ( meshlib.Vector2f value)

Modifies a member variable of class MR::Line2f named d. The reference to the parameter value might be preserved in this object in element d.

Calls MR_Line2f_Set_d().

◆ setP()

void meshlib.Line2f.setP ( meshlib.Vector2f value)

Modifies a member variable of class MR::Line2f named p. The reference to the parameter value might be preserved in this object in element p.

Calls MR_Line2f_Set_p().


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