MaxPlus Python API Reference
Point2 Class Reference
+ Inheritance diagram for Point2:

Public Member Functions

def DotProd (self, *args)
 
def Equals (self, *args)
 
def GetLength (self)
 
def GetMaxComponent (self)
 
def GetMinComponent (self)
 
def GetOrigin ()
 
def GetX (self)
 
def GetXAxis ()
 
def GetY (self)
 
def GetYAxis ()
 
def LengthUnify (self)
 
def Normalize (self)
 
def Set (self, *args)
 
def SetX (self, *args)
 
def SetY (self, *args)
 
def Unify (self)
 
- Public Member Functions inherited from Wrapper
def GetUnwrappedPtr (self)
 

Public Attributes

 this
 

Static Public Attributes

 GetOrigin = staticmethod(GetOrigin)
 
 GetXAxis = staticmethod(GetXAxis)
 
 GetYAxis = staticmethod(GetYAxis)
 
 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
 X = _swig_property(GetX, SetX)
 
 Y = _swig_property(GetY, SetY)
 
- Static Public Attributes inherited from Wrapper
 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 

Detailed Description

Describes a 2D point using float x and y coordinates.

Member Function Documentation

◆ DotProd()

def DotProd (   self,
args 
)
DotProd(Point2 self, Point2 p) -> float

◆ Equals()

def Equals (   self,
args 
)
Equals(Point2 self, Point2 p, float epsilon=1E-6) -> bool
Equals(Point2 self, Point2 p) -> bool

◆ GetLength()

def GetLength (   self)
GetLength(Point2 self) -> float

◆ GetMaxComponent()

def GetMaxComponent (   self)
GetMaxComponent(Point2 self) -> int

◆ GetMinComponent()

def GetMinComponent (   self)
GetMinComponent(Point2 self) -> int

◆ GetOrigin()

def GetOrigin ( )
GetOrigin() -> Point2

◆ GetX()

def GetX (   self)
GetX(Point2 self) -> float

◆ GetXAxis()

def GetXAxis ( )
GetXAxis() -> Point2

◆ GetY()

def GetY (   self)
GetY(Point2 self) -> float

◆ GetYAxis()

def GetYAxis ( )
GetYAxis() -> Point2

◆ LengthUnify()

def LengthUnify (   self)
LengthUnify(Point2 self) -> float

◆ Normalize()

def Normalize (   self)
Normalize(Point2 self) -> Point2

◆ Set()

def Set (   self,
args 
)
Set(Point2 self, float X, float Y) -> Point2

◆ SetX()

def SetX (   self,
args 
)
SetX(Point2 self, float value)

◆ SetY()

def SetY (   self,
args 
)
SetY(Point2 self, float value)

◆ Unify()

def Unify (   self)
Unify(Point2 self) -> Point2