LatLongRange Class Reference

#include <c4d_spc.h>

Detailed Description

Holds latitude and longitude angles range. Private.

Since
R19

Public Member Functions

LatLongRangeoperator= (const LatLongRange &other)
 
void SetFullRange ()
 
Bool InRange (Float lt, Float lg) const
 

Public Attributes

Float _latMin
 
Float _latMax
 
Float _longMin
 
Float _longMax
 

Constructors

 LatLongRange ()=default
 
 LatLongRange (const LatLongRange &src)
 

Constructor & Destructor Documentation

◆ LatLongRange() [1/2]

LatLongRange ( )
default

Default constructor.

◆ LatLongRange() [2/2]

LatLongRange ( const LatLongRange src)

Copy constructor.

Parameters
[in]srcThe source LatLongRange.

Member Function Documentation

◆ operator=()

LatLongRange& operator= ( const LatLongRange other)

Assigment operator.

Parameters
[in]otherAnother LatLongRange.

◆ SetFullRange()

void SetFullRange ( )

Makes the range conver the entire sphere (defaut values).

◆ InRange()

Bool InRange ( Float  lt,
Float  lg 
) const

Checks if the given lat-long coordinate are within the range.

Parameters
[in]ltThe latitude.
[in]lgThe longitude.
Returns
true if angle is in the current range, otherwise false.

Member Data Documentation

◆ _latMin

Float _latMin

Minimum latitude, default is -PI/2.

◆ _latMax

Float _latMax

Maximum latitude, default is PI/2.

◆ _longMin

Float _longMin

Minimum longitude, default is -PI.

◆ _longMax

Float _longMax

Maximum longitude, default is PI.