Table Of Contents

Previous topic

Point

Next topic

PolygonFillMode

This Page

phoenix_title Point2DDouble


class_hierarchy Inheritance Diagram

Inheritance diagram for class Point2DDouble

Inheritance diagram of Point2DDouble


api Class API



class Point2DDouble(object)

Possible constructors:

Point2DDouble()

Point2DDouble(x, y)

Point2DDouble(pt)

Point2DDouble(pt)

Methods



__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)



__init__ (self, x, y)

Parameters:
  • x (float) –
  • y (float) –



__init__ (self, pt)

Parameters:pt (Point2DDouble) –



__init__ (self, pt)

Parameters:pt (Point) –





Get(self)

Get() -> (x,y)

Return the x and y properties as a tuple.

Return type:PyObject


GetCrossProduct(self, vec)
Parameters:vec (Point2DDouble) –
Return type:float


GetDistance(self, pt)
Parameters:pt (Point2DDouble) –
Return type:float


GetDistanceSquare(self, pt)
Parameters:pt (Point2DDouble) –
Return type:float


GetDotProduct(self, vec)
Parameters:vec (Point2DDouble) –
Return type:float


GetFloor(self)
Return type:tuple
Returns:( x, y )


GetRounded(self)
Return type:tuple
Returns:( x, y )


GetVectorAngle(self)
Return type:float


GetVectorLength(self)
Return type:float


Normalize(self)


SetVectorAngle(self, degrees)
Parameters:degrees (float) –


SetVectorLength(self, length)
Parameters:length (float) –


__getitem__(self, idx)


__len__(self)


__nonzero__(self)


__reduce__(self)


__repr__(self)


__setitem__(self, idx, val)


__str__(self)


__ne__(self)
Parameters:pt (Point2DDouble) –


__imul__(self, *args, **kw)


__iadd__(self)
Parameters:pt (Point2DDouble) –


__sub__(self)


__isub__(self)
Parameters:pt (Point2DDouble) –


__idiv__(self, *args, **kw)


__eq__(self)
Parameters:pt (Point2DDouble) –

Properties



VectorAngle

See GetVectorAngle and SetVectorAngle



VectorLength

See GetVectorLength and SetVectorLength