Mathematics CATMathAxis2D

Usage: you must use this class as is. You should never derive it.


public class CATMathAxis2D

Class representing a mathematical axis system in dimension 2.
Role:
It is composed of an Origin, and of two directions (normalized vectors) FirstDirection, SecondDirection. If the two directions are not directly orthogonal or normalized, it will be done internally.


Constructor and Destructor Index


o CATMathAxis2D()
Constructs a canonical CATMathAxis2D.
o CATMathAxis2D(CATMathAxis2D&)
Copy constructor.
o CATMathAxis2D(CATMathPoint2D&,CATMathVector2D&,CATMathVector2D&)

Method Index


o GetDirections(CATMathVector2D&,CATMathVector2D&)
Retrieves the two (orthonormalized) directions of this CATMathAxis2D.
o GetFirstDirection(CATMathVector2D&)
Returns the first (normalized) direction of this CATMathAxis2D.
o GetOrigin(CATMathPoint2D&)
Returns the origin of this CATMathAxis2D.
o GetSecondDirection(CATMathVector2D&)
Returns the second (normalized) direction of this CATMathAxis2D.
o Set(CATMathPoint2D&,CATMathVector2D&,CATMathVector2D&)
Modifies CATMathAxis2D from a CATMathPoint2D and two CATMathVector2D.
o SetDirections(CATMathVector2D&,CATMathVector2D&)
Modifies the directions of this CATMathAxis2D.
o SetOrigin(CATMathPoint2D&)
Modifies the origin of this CATMathAxis2D.

Constructor and Destructor


o CATMathAxis2D
public CATMathAxis2D()
Constructs a canonical CATMathAxis2D.
Origin=(0,0), FirstDirection = (1,0), SecondDirection =(0,1).
o CATMathAxis2D
public CATMathAxis2D( const iAxisToCopy)
Copy constructor.
o CATMathAxis2D
public CATMathAxis2D( const iOrigin,
const iFirstDirection,
const iSecondDirection)
Deprecated:
V5R20 Set Constructs CATMathAxis2D from a CATMathPoint2D and two CATMathVector2D.
The input vectors must not be colinear, but this is not checked.

Methods


o GetDirections
public GetDirections( ioFirstDirection,
ioSecondDirection)
Retrieves the two (orthonormalized) directions of this CATMathAxis2D.
o GetFirstDirection
public GetFirstDirection( ioFirstDirection)
Returns the first (normalized) direction of this CATMathAxis2D.
o GetOrigin
public GetOrigin( ioOrigin)
Returns the origin of this CATMathAxis2D.
o GetSecondDirection
public GetSecondDirection( ioSecondDirection)
Returns the second (normalized) direction of this CATMathAxis2D.
o Set
public Set( const iOrigin,
const iFirstDirection,
const iSecondDirection)
Modifies CATMathAxis2D from a CATMathPoint2D and two CATMathVector2D.
Returns:
FALSE if the input vectors are colinear, TRUE otherwise.
o SetDirections
public SetDirections( const iFirstDirection,
const iSecondDirection)
Modifies the directions of this CATMathAxis2D.
Returns:
FALSE if the input vectors are colinear, TRUE otherwise.
o SetOrigin
public SetOrigin( const iOrigin)
Modifies the origin of this CATMathAxis2D.

This object is included in the file: CATMathAxis2D.h
If needed, your Imakefile.mk should include the module: CATMathematics

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.