Cartesian2Vector#

class ansys.stk.core.stkutil.Cartesian2Vector#

A 2-D cartesian vector.

Overview#

get

Return cartesian vector.

set

Set cartesian vector.

to_array

Return coordinates as an array.

x

X coordinate.

y

Y coordinate.

Import detail#

from ansys.stk.core.stkutil import Cartesian2Vector

Property detail#

property Cartesian2Vector.x: float#

X coordinate.

property Cartesian2Vector.y: float#

Y coordinate.

Method detail#

Cartesian2Vector.get(self) Tuple[float, float]#

Return cartesian vector.

Returns:

Tuple[float, float]

Cartesian2Vector.set(self, x: float, y: float) None#

Set cartesian vector.

Parameters:

x : float

y : float

Returns:

None

Cartesian2Vector.to_array(self) list#

Return coordinates as an array.

Returns:

list