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

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ Line3d() [1/4]

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

◆ Line3d() [2/4]

meshlib.Line3d.Line3d ( )

Constructs an empty (default-constructed) instance.

Calls MR_Line3d_DefaultConstruct().

◆ Line3d() [3/4]

meshlib.Line3d.Line3d ( meshlib.Line3d _other)

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

Calls MR_Line3d_ConstructFromAnother().

◆ Line3d() [4/4]

meshlib.Line3d.Line3d ( meshlib.Vector3d p,
meshlib.Vector3d d )

Generated from constructor MR::Line3d::Line3d. 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_Line3d_Construct().

Member Function Documentation

◆ assignFromAnother()

meshlib.Line3d meshlib.Line3d.assignFromAnother ( meshlib.Line3d _other)

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

Calls MR_Line3d_AssignFromAnother().

◆ call()

meshlib.Vector3d meshlib.Line3d.call ( double param)

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

Calls MR_Line3d_call().

◆ d()

meshlib.Vector3d meshlib.Line3d.d ( )

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

Calls MR_Line3d_Get_d().

◆ distanceSq()

double meshlib.Line3d.distanceSq ( meshlib.Vector3d x)

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

Calls MR_Line3d_distanceSq().

◆ normalized()

meshlib.Line3d meshlib.Line3d.normalized ( )

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

Calls MR_Line3d_normalized().

◆ opAdd()

meshlib.Line3d meshlib.Line3d.opAdd ( )

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

Calls MR_pos_MR_Line3d().

◆ opSub()

meshlib.Line3d meshlib.Line3d.opSub ( )

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

Calls MR_neg_MR_Line3d().

◆ p()

meshlib.Vector3d meshlib.Line3d.p ( )

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

Calls MR_Line3d_Get_p().

◆ project()

meshlib.Vector3d meshlib.Line3d.project ( meshlib.Vector3d x)

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

Calls MR_Line3d_project().

◆ projectionParam()

double meshlib.Line3d.projectionParam ( meshlib.Vector3d x)

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

Calls MR_Line3d_projectionParam().

◆ setD()

void meshlib.Line3d.setD ( meshlib.Vector3d value)

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

Calls MR_Line3d_Set_d().

◆ setP()

void meshlib.Line3d.setP ( meshlib.Vector3d value)

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

Calls MR_Line3d_Set_p().


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