Public Member Functions | |
| Line2d (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| Line2d () | |
| Line2d (meshlib.Line2d _other) | |
| Line2d (meshlib.Vector2d p, meshlib.Vector2d d) | |
| meshlib.Line2d | assignFromAnother (meshlib.Line2d _other) |
| meshlib.Vector2d | call (double param) |
| double | distanceSq (meshlib.Vector2d x) |
| meshlib.Line2d | opSub () |
| meshlib.Line2d | opAdd () |
| meshlib.Line2d | normalized () |
| double | projectionParam (meshlib.Vector2d x) |
| meshlib.Vector2d | project (meshlib.Vector2d x) |
| meshlib.Vector2d | p () |
| void | setP (meshlib.Vector2d value) |
| meshlib.Vector2d | d () |
| void | setD (meshlib.Vector2d 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) | |
2- or 3-dimensional line: cross( x - p, d ) = 0 Generated from class MR::Line2d.
Instances created here own their C++ objects, see CppObject.
| meshlib.Line2d.Line2d | ( | 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.
| meshlib.Line2d.Line2d | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_Line2d_DefaultConstruct().
| meshlib.Line2d.Line2d | ( | meshlib.Line2d | _other | ) |
Generated from constructor MR::Line2d::Line2d. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
Calls MR_Line2d_ConstructFromAnother().
| meshlib.Line2d.Line2d | ( | meshlib.Vector2d | p, |
| meshlib.Vector2d | d ) |
Generated from constructor MR::Line2d::Line2d. 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_Line2d_Construct().
| meshlib.Line2d meshlib.Line2d.assignFromAnother | ( | meshlib.Line2d | _other | ) |
Generated from method MR::Line2d::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_Line2d_AssignFromAnother().
| meshlib.Vector2d meshlib.Line2d.call | ( | double | param | ) |
returns point on the line, where param=0 returns p and param=1 returns p+d Generated from method MR::Line2d::operator().
Calls MR_Line2d_call().
| meshlib.Vector2d meshlib.Line2d.d | ( | ) |
Returns a pointer to a member variable of class MR::Line2d named d. The reference to this object might be preserved as the return value.
Calls MR_Line2d_Get_d().
| double meshlib.Line2d.distanceSq | ( | meshlib.Vector2d | x | ) |
returns squared distance from given point to this line Generated from method MR::Line2d::distanceSq.
Calls MR_Line2d_distanceSq().
| meshlib.Line2d meshlib.Line2d.normalized | ( | ) |
returns same line represented with unit d-vector Generated from method MR::Line2d::normalized.
Calls MR_Line2d_normalized().
| meshlib.Line2d meshlib.Line2d.opAdd | ( | ) |
returns same representation Generated from method MR::Line2d::operator+.
Calls MR_pos_MR_Line2d().
| meshlib.Line2d meshlib.Line2d.opSub | ( | ) |
returns same line represented with flipped direction of d-vector Generated from method MR::Line2d::operator-.
Calls MR_neg_MR_Line2d().
| meshlib.Vector2d meshlib.Line2d.p | ( | ) |
Returns a pointer to a member variable of class MR::Line2d named p. The reference to this object might be preserved as the return value.
Calls MR_Line2d_Get_p().
| meshlib.Vector2d meshlib.Line2d.project | ( | meshlib.Vector2d | x | ) |
finds the closest point to the given one on this line Generated from method MR::Line2d::project.
Calls MR_Line2d_project().
| double meshlib.Line2d.projectionParam | ( | meshlib.Vector2d | x | ) |
finds the parameter of the closest point to the given one on this line Generated from method MR::Line2d::projectionParam.
Calls MR_Line2d_projectionParam().
| void meshlib.Line2d.setD | ( | meshlib.Vector2d | value | ) |
Modifies a member variable of class MR::Line2d named d. The reference to the parameter value might be preserved in this object in element d.
Calls MR_Line2d_Set_d().
| void meshlib.Line2d.setP | ( | meshlib.Vector2d | value | ) |
Modifies a member variable of class MR::Line2d named p. The reference to the parameter value might be preserved in this object in element p.
Calls MR_Line2d_Set_p().