Rasterfarm-SDK
Loading...
Searching...
No Matches
Segment Class Reference

#include <segment.h>

Inheritance diagram for Segment:
Capsule Primitive3D::Capsule Shape::Skeletal::Bone

Public Member Functions

 Segment ()
 
 Segment (const Vertex2f &a, const Vertex2f &b)
 
Segment operator- () const
 
 operator Vector2f () const
 
const bool operator== (const Segment &other) const
 
const bool operator!= (const Segment &other) const
 
const Vertex2foperator[] (uint i) const
 
Vertex2foperator[] (uint i)
 
const Vertex2fgetVertex () const
 
Vertex2fgetVertex ()
 
Vertex2f getLine () const
 
Vertex2f getCenter () const
 
float slope () const
 
 Segment ()
 
 Segment (const Vertex3f &a, const Vector3f &b)
 
 operator Vector3f () const
 
const Vertex3foperator[] (uint i) const
 
Vertex3foperator[] (uint i)
 
 operator Primitive2D::Segment ()
 
Segment operator- () const
 
const bool operator== (const Segment &other) const
 
const Vertex3fgetVertex () const
 
Vertex3fgetVertex ()
 
Vector3f getLine () const
 
Vertex3f getCenter () const
 

Protected Attributes

Vertex2f vertex [2]
 
Vertex3f vertex [2]
 

Constructor & Destructor Documentation

◆ Segment() [1/4]

Segment::Segment ( )

◆ Segment() [2/4]

Segment::Segment ( const Vertex2f & a,
const Vertex2f & b )
Parameters
The1st Vertex of the Segment, must != the 2nd Vertex.
The2nd Vertex of the Segment, must != the 1st Vertex.

◆ Segment() [3/4]

Segment::Segment ( )

◆ Segment() [4/4]

Segment::Segment ( const Vertex3f & a,
const Vector3f & b )
Parameters
The1st Vertex of the Segment, must != the 2nd Vertex.
The2nd Vertex of the Segment, must != the 1st Vertex.

Member Function Documentation

◆ getCenter() [1/2]

Vertex2f Segment::getCenter ( ) const

◆ getCenter() [2/2]

Vertex3f Segment::getCenter ( ) const

◆ getLine() [1/2]

Vertex2f Segment::getLine ( ) const

◆ getLine() [2/2]

Vector3f Segment::getLine ( ) const

◆ getVertex() [1/4]

Vertex2f & Segment::getVertex ( )
inline

◆ getVertex() [2/4]

Vertex3f & Segment::getVertex ( )
inline

◆ getVertex() [3/4]

const Vertex2f & Segment::getVertex ( ) const
inline

◆ getVertex() [4/4]

const Vertex3f & Segment::getVertex ( ) const
inline

◆ operator Primitive2D::Segment()

Segment::operator Primitive2D::Segment ( )

◆ operator Vector2f()

Segment::operator Vector2f ( ) const
inlineexplicit

◆ operator Vector3f()

Segment::operator Vector3f ( ) const
inlineexplicit

◆ operator!=()

const bool Segment::operator!= ( const Segment & other) const
inline

◆ operator-() [1/2]

Segment Segment::operator- ( ) const

◆ operator-() [2/2]

Segment Segment::operator- ( ) const

◆ operator==() [1/2]

const bool Segment::operator== ( const Segment & other) const

◆ operator==() [2/2]

const bool Segment::operator== ( const Segment & other) const

◆ operator[]() [1/4]

Vertex2f & Segment::operator[] ( uint i)

◆ operator[]() [2/4]

Vertex3f & Segment::operator[] ( uint i)

◆ operator[]() [3/4]

const Vertex2f & Segment::operator[] ( uint i) const

◆ operator[]() [4/4]

const Vertex3f & Segment::operator[] ( uint i) const

◆ slope()

float Segment::slope ( ) const

Member Data Documentation

◆ vertex [1/2]

Vertex2f Segment::vertex[2]
protected

◆ vertex [2/2]

Vertex3f Segment::vertex[2]
protected

The documentation for this class was generated from the following files: