GLUS
Functions
glus_point.c File Reference
#include "GL/glus.h"

Functions

GLUSvoid GLUSAPIENTRY glusPoint4Copyf (GLUSfloat result[4], const GLUSfloat point[4])
 Copies a 3D point, given as homogeneous coordinates. More...
 
GLUSvoid GLUSAPIENTRY glusPoint3Copyf (GLUSfloat result[3], const GLUSfloat point[3])
 Copies a 2D point, given as homogeneous coordinates. More...
 
GLUSvoid GLUSAPIENTRY glusPoint4SubtractPoint4f (GLUSfloat result[3], const GLUSfloat point0[4], const GLUSfloat point1[4])
 Subtracts a 3D point, given as homogeneous coordinates, from another and calculates a 3D vector. More...
 
GLUSvoid GLUSAPIENTRY glusPoint3SubtractPoint3f (GLUSfloat result[2], const GLUSfloat point0[3], const GLUSfloat point1[3])
 Subtracts a 2D point, given as homogeneous coordinates, from another and calculates a 2D vector. More...
 
GLUSvoid GLUSAPIENTRY glusPoint4AddVector3f (GLUSfloat result[4], const GLUSfloat point[4], const GLUSfloat vector[3])
 Adds a vector to a 3D point, given as homogeneous coordinates. More...
 
GLUSvoid GLUSAPIENTRY glusPoint3AddVector2f (GLUSfloat result[3], const GLUSfloat point[3], const GLUSfloat vector[2])
 Adds a vector to a 2D point, given as homogeneous coordinates. More...
 
GLUSvoid GLUSAPIENTRY glusPoint4SubtractVector3f (GLUSfloat result[4], const GLUSfloat point[4], const GLUSfloat vector[3])
 Subtracts a vector from a 3D point, given as homogeneous coordinates. More...
 
GLUSvoid GLUSAPIENTRY glusPoint3SubtractVector2f (GLUSfloat result[3], const GLUSfloat point[3], const GLUSfloat vector[2])
 Subtracts a vector from a 2D point, given as homogeneous coordinates. More...
 
GLUSvoid GLUSAPIENTRY glusPoint4GetQuaternionf (GLUSfloat result[4], const GLUSfloat point[4])
 Converts a 3D point, given as homogeneous coordinates, to a quaternion. More...
 
GLUSvoid GLUSAPIENTRY glusPoint4GetVector3f (GLUSfloat result[3], const GLUSfloat point[4])
 Converts a 3D point, given as homogeneous coordinates, to a vector. More...
 
GLUSvoid GLUSAPIENTRY glusPoint3GetVector2f (GLUSfloat result[2], const GLUSfloat point[3])
 Converts a 2D point, given as homogeneous coordinates, to a vector. More...
 
GLUSfloat GLUSAPIENTRY glusPoint4Distancef (const GLUSfloat point0[4], const GLUSfloat point1[4])
 Calculates the distance of two 3D points, given as homogeneous coordinates. More...
 
GLUSfloat GLUSAPIENTRY glusPoint3Distancef (const GLUSfloat point0[3], const GLUSfloat point1[3])
 Calculates the distance of two 2D points, given as homogeneous coordinates. More...
 

Function Documentation

GLUSvoid GLUSAPIENTRY glusPoint3AddVector2f ( GLUSfloat  result[3],
const GLUSfloat  point[3],
const GLUSfloat  vector[2] 
)

Adds a vector to a 2D point, given as homogeneous coordinates.

Result is the new point.

Parameters
resultThe resulting point.
pointThe point.
vectorThe vector, which is added to the point.
GLUSvoid GLUSAPIENTRY glusPoint3Copyf ( GLUSfloat  result[3],
const GLUSfloat  point[3] 
)

Copies a 2D point, given as homogeneous coordinates.

Parameters
resultThe destination point.
pointThe source point.
GLUSfloat GLUSAPIENTRY glusPoint3Distancef ( const GLUSfloat  point0[3],
const GLUSfloat  point1[3] 
)

Calculates the distance of two 2D points, given as homogeneous coordinates.

Parameters
point0The first point.
point1The second point.
Returns
The distance of the two points.
GLUSvoid GLUSAPIENTRY glusPoint3GetVector2f ( GLUSfloat  result[2],
const GLUSfloat  point[3] 
)

Converts a 2D point, given as homogeneous coordinates, to a vector.

Parameters
resultThe resulting vector.
pointThe point, which is converted.
GLUSvoid GLUSAPIENTRY glusPoint3SubtractPoint3f ( GLUSfloat  result[2],
const GLUSfloat  point0[3],
const GLUSfloat  point1[3] 
)

Subtracts a 2D point, given as homogeneous coordinates, from another and calculates a 2D vector.

Parameters
resultThe resulting vector.
point0The point subtracted by point1.
point1The point subtracted from point0.
GLUSvoid GLUSAPIENTRY glusPoint3SubtractVector2f ( GLUSfloat  result[3],
const GLUSfloat  point[3],
const GLUSfloat  vector[2] 
)

Subtracts a vector from a 2D point, given as homogeneous coordinates.

Result is the new point.

Parameters
resultThe resulting point.
pointThe point.
vectorThe vector, which is subtracted from the point.
GLUSvoid GLUSAPIENTRY glusPoint4AddVector3f ( GLUSfloat  result[4],
const GLUSfloat  point[4],
const GLUSfloat  vector[3] 
)

Adds a vector to a 3D point, given as homogeneous coordinates.

Result is the new point.

Parameters
resultThe resulting point.
pointThe point.
vectorThe vector, which is added to the point.
GLUSvoid GLUSAPIENTRY glusPoint4Copyf ( GLUSfloat  result[4],
const GLUSfloat  point[4] 
)

Copies a 3D point, given as homogeneous coordinates.

Parameters
resultThe destination point.
pointThe source point.
GLUSfloat GLUSAPIENTRY glusPoint4Distancef ( const GLUSfloat  point0[4],
const GLUSfloat  point1[4] 
)

Calculates the distance of two 3D points, given as homogeneous coordinates.

Parameters
point0The first point.
point1The second point.
Returns
The distance of the two points.
GLUSvoid GLUSAPIENTRY glusPoint4GetQuaternionf ( GLUSfloat  result[4],
const GLUSfloat  point[4] 
)

Converts a 3D point, given as homogeneous coordinates, to a quaternion.

Parameters
resultThe resulting quaternion.
pointThe point, which is converted.
GLUSvoid GLUSAPIENTRY glusPoint4GetVector3f ( GLUSfloat  result[3],
const GLUSfloat  point[4] 
)

Converts a 3D point, given as homogeneous coordinates, to a vector.

Parameters
resultThe resulting vector.
pointThe point, which is converted.
GLUSvoid GLUSAPIENTRY glusPoint4SubtractPoint4f ( GLUSfloat  result[3],
const GLUSfloat  point0[4],
const GLUSfloat  point1[4] 
)

Subtracts a 3D point, given as homogeneous coordinates, from another and calculates a 3D vector.

Parameters
resultThe resulting vector.
point0The point subtracted by point1.
point1The point subtracted from point0.
GLUSvoid GLUSAPIENTRY glusPoint4SubtractVector3f ( GLUSfloat  result[4],
const GLUSfloat  point[4],
const GLUSfloat  vector[3] 
)

Subtracts a vector from a 3D point, given as homogeneous coordinates.

Result is the new point.

Parameters
resultThe resulting point.
pointThe point.
vectorThe vector, which is subtracted from the point.