Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::Point Struct Reference

# Zap::Point Struct Reference

`#include <point.h>`

## Public Types

typedef float | member_type

## Public Member Functions

| Point ()
| Point (const Point &pt)
| Point (member_type in_x, member_type in_y)
void | set (member_type ix, member_type iy)
void | set (const Point &pt)
Point | operator+ (const Point &pt) const
Point | operator- (const Point &pt) const
Point | operator- () const
Point & | operator+= (const Point &pt)
Point & | operator-= (const Point &pt)
Point | operator * (const member_type f)
Point & | operator *= (const member_type f)
Point | operator * (const Point &pt)
Point & | operator= (const Point &pt)
bool | operator== (const Point &pt) const
member_type | len () const
member_type | lenSquared () const
void | normalize ()
void | normalize (float newLen)
void | scaleFloorDiv (float scaleFactor, float divFactor)
member_type | dot (const Point &p) const
void | read (const char **argv)

## Data Fields

member_type | x
member_type | y

## Member Typedef Documentation

typedef float Zap::Point::member_type

## Constructor & Destructor Documentation

Zap::Point::Point | ( |  | ) | `[inline]`

Zap::Point::Point | ( | const Point & | pt | ) | `[inline]`

Zap::Point::Point | ( | member_type | in_x,
|  | member_type | in_y |
| ) |  |  | `[inline]`

## Member Function Documentation

void Zap::Point::set | ( | member_type | ix,
|  | member_type | iy |
| ) |  |  | `[inline]`

void Zap::Point::set | ( | const Point & | pt | ) | `[inline]`

Point Zap::Point::operator+ | ( | const Point & | pt | ) | const`[inline]`

Point Zap::Point::operator- | ( | const Point & | pt | ) | const`[inline]`

Point Zap::Point::operator- | ( |  | ) | const`[inline]`

Point& Zap::Point::operator+= | ( | const Point & | pt | ) | `[inline]`

Point& Zap::Point::operator-= | ( | const Point & | pt | ) | `[inline]`

Point Zap::Point::operator * | ( | const member_type | f | ) | `[inline]`

Point& Zap::Point::operator *= | ( | const member_type | f | ) | `[inline]`

Point Zap::Point::operator * | ( | const Point & | pt | ) | `[inline]`

Point& Zap::Point::operator= | ( | const Point & | pt | ) | `[inline]`

bool Zap::Point::operator== | ( | const Point & | pt | ) | const`[inline]`

member_type Zap::Point::len | ( |  | ) | const`[inline]`

member_type Zap::Point::lenSquared | ( |  | ) | const`[inline]`

void Zap::Point::normalize | ( |  | ) | `[inline]`

void Zap::Point::normalize | ( | float | newLen | ) | `[inline]`

void Zap::Point::scaleFloorDiv | ( | float | scaleFactor,
|  | float | divFactor |
| ) |  |  | `[inline]`

member_type Zap::Point::dot | ( | const Point & | p | ) | const`[inline]`

void Zap::Point::read | ( | const char ** | argv | ) | `[inline]`

## Field Documentation

member_type Zap::Point::x

member_type Zap::Point::y