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

Public Member Functions

 LineSegm2f (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 LineSegm2f ()
 LineSegm2f (meshlib.LineSegm2f _other)
 LineSegm2f (meshlib.Vector2f a, meshlib.Vector2f b)
meshlib.LineSegm2f assignFromAnother (meshlib.LineSegm2f _other)
meshlib.Vector2f dir ()
float lengthSq ()
float length ()
meshlib.Vector2f call (float param)
meshlib.Vector2f a ()
void setA (meshlib.Vector2f value)
meshlib.Vector2f b ()
void setB (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

a segment of straight dimensional line Generated from class MR::LineSegm2f.

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

Constructor & Destructor Documentation

◆ LineSegm2f() [1/4]

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

◆ LineSegm2f() [2/4]

meshlib.LineSegm2f.LineSegm2f ( )

Constructs an empty (default-constructed) instance.

Calls MR_LineSegm2f_DefaultConstruct().

◆ LineSegm2f() [3/4]

meshlib.LineSegm2f.LineSegm2f ( meshlib.LineSegm2f _other)

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

Calls MR_LineSegm2f_ConstructFromAnother().

◆ LineSegm2f() [4/4]

meshlib.LineSegm2f.LineSegm2f ( meshlib.Vector2f a,
meshlib.Vector2f b )

Generated from constructor MR::LineSegm2f::LineSegm2f. The reference to the parameter a might be preserved in the constructed object. The reference to the parameter b might be preserved in the constructed object.

Calls MR_LineSegm2f_Construct().

Member Function Documentation

◆ a()

meshlib.Vector2f meshlib.LineSegm2f.a ( )

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

Calls MR_LineSegm2f_Get_a().

◆ assignFromAnother()

meshlib.LineSegm2f meshlib.LineSegm2f.assignFromAnother ( meshlib.LineSegm2f _other)

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

Calls MR_LineSegm2f_AssignFromAnother().

◆ b()

meshlib.Vector2f meshlib.LineSegm2f.b ( )

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

Calls MR_LineSegm2f_Get_b().

◆ call()

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

returns point on the line, where param=0 returns a and param=1 returns b Generated from method MR::LineSegm2f::operator().

Calls MR_LineSegm2f_call().

◆ dir()

meshlib.Vector2f meshlib.LineSegm2f.dir ( )

returns directional vector of the line Generated from method MR::LineSegm2f::dir.

Calls MR_LineSegm2f_dir().

◆ length()

float meshlib.LineSegm2f.length ( )

returns the length of this line segment Generated from method MR::LineSegm2f::length.

Calls MR_LineSegm2f_length().

◆ lengthSq()

float meshlib.LineSegm2f.lengthSq ( )

returns squared length of this line segment Generated from method MR::LineSegm2f::lengthSq.

Calls MR_LineSegm2f_lengthSq().

◆ setA()

void meshlib.LineSegm2f.setA ( meshlib.Vector2f value)

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

Calls MR_LineSegm2f_Set_a().

◆ setB()

void meshlib.LineSegm2f.setB ( meshlib.Vector2f value)

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

Calls MR_LineSegm2f_Set_b().


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