wx.Point2D

Inheritance diagram for wx.Point2D:



Description

wx.Point2D represents a point or a vector in a 2d coordinate system with floating point values.

Properties Summary

Class API

Methods

__init__(x=0.0, y=0.0)

Create a w.Point2D object.

Parameters:

  • x (double)
  • y (double)

Returns:

wx.Point2D


Get()

Return x and y properties as a tuple.


Returns:

(x, y)


GetCrossProduct(vec)

Parameters:


Returns:

double


GetDistance(pt)

Parameters:


Returns:

double


GetDistanceSquare(pt)

Parameters:


Returns:

double


GetDotProduct(vec)

Parameters:


Returns:

double


GetFloor()

Convert to integer.


Returns:

(x, y)


GetRounded()

Convert to integer.


Returns:

(x, y)


GetVectorAngle()
No docstrings available for this method.

GetVectorLength()
No docstrings available for this method.

Normalize()
No docstrings available for this method.

Set(x=0, y=0)

Parameters:

  • x (double)
  • y (double)

SetPolarCoordinates(angle, length)

Parameters:

  • angle
  • length

SetVectorAngle(degrees)

Parameters:

  • degrees (double)

SetVectorLength(length)

Parameters:

  • length (double)

Properties

Floor
See GetFloor
Rounded
See GetRounded
VectorAngle
See GetVectorAngle and SetVectorAngle
VectorLength
See GetVectorLength and SetVectorLength
x
y