Package pybox2d :: Module Box2D :: Class b2Segment |
[hide private]
[frames] | no frames]

# type b2Segment

source code

A line segment.

Instance Methods | [hide private]
__repr__(self) | source code
__getstate__(self, additional_ignore=`[``]`) Returns a dictionary representation of self, with dict(var=value [, ...]) | source code
__setstate__(self, dict) Takes each variable=value pair in the dictionary and sets the attributes based on them | source code
b2Segment |
__init__(self) | source code
__swig_destroy__(...) delete_b2Segment(b2Segment self) |
TestSegment(...) b2Segment_TestSegment(b2Segment self, float32 _lambda, b2Vec2 normal, b2Segment segment, float32 maxLambda) -> bool | source code

Properties | [hide private]
| thisown The membership flag
| p1 b2Segment_p1_get(b2Segment self) -> b2Vec2
| p2 b2Segment_p2_get(b2Segment self) -> b2Vec2

Method Details | [hide private]

### __repr__(self) (Representation operator) | source code
Overrides: object.__repr__ (inherited documentation)

### __getstate__(self, additional_ignore=`[``]`) | source code
    Returns a dictionary representation of self, with
     dict(var=value [, ...])

    additional_ignore can be specified to ignore certain
    properties.

### __init__(self) (Constructor) | source code
Returns: b2Segment Overrides: object.__init__

### TestSegment(...) | source code
    b2Segment_TestSegment(b2Segment self, float32 _lambda, b2Vec2 normal, b2Segment segment,
        float32 maxLambda) -> bool

    Ray cast against this segment with another segment.

Property Details | [hide private]

### thisown The membership flag

### p1 b2Segment_p1_get(b2Segment self) -> b2Vec2

### p2 b2Segment_p2_get(b2Segment self) -> b2Vec2